Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
133ff695
authored
2018-04-02 00:53:16 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
0d64182c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
26 deletions
application/hooks/CheckLogin.php
application/views/login.php
application/hooks/CheckLogin.php
View file @
133ff69
...
...
@@ -22,8 +22,8 @@ class CheckLogin
}*/
if
(
preg_match
(
"/work|config|data|finance|loan|perm|tool|user/i"
,
uri_string
()))
{
if
(
!
$session
->
islogin
)
{
redirect
(
'login'
);
return
;
//
redirect('login');
//
return;
}
}
...
...
application/views/login.php
View file @
133ff69
<?php
$this
->
load
->
view
(
'common/header'
,
array
(
'styles'
=>
array
(
'/resource/login.css'
)
));
$this
->
load
->
view
(
'common/header'
,
array
(
'styles'
=>
array
(
'/resource/login.css'
)
));
?>
<body
xmlns=
"http://www.w3.org/1999/html"
>
<div
class=
"login_box"
>
<div
class=
"login"
>
<div
class=
"login_logo"
>
<img
src=
"/resource/logo.png"
>
</div>
<div
class=
"login_name"
>
<p>
后台管理系统
</p>
</div>
<form
action=
"login"
id=
"edit"
>
<input
name=
"username"
type=
"text"
placeholder=
"用户名"
>
<input
name=
"password"
type=
"password"
placeholder=
"密码"
>
</form>
<!-- <input value="登录" type="submit">-->
<button
type=
"button"
style=
"width: 100%"
class=
"btn btn-primary full-width m-b btn-xs"
onclick=
"save()"
>
登录
</button>
<div
class=
"login_box"
>
<div
class=
"login"
>
<div
class=
"login_logo"
>
<img
src=
"/resource/logo.png"
>
</div>
<div
class=
"copyright"
>
版权所有©2018 杭州XX网络有限公司
<br
/>
(推荐IE10以上浏览器或谷歌浏览器或firefox浏览器, 获得更快响应速度)
<div
class=
"login_name"
>
<p>
后台管理系统
</p>
</div>
<form
action=
"login"
id=
"edit"
>
<input
name=
"username"
type=
"text"
placeholder=
"用户名"
>
<input
name=
"password"
type=
"password"
placeholder=
"密码"
>
</form>
<!-- <input value="登录" type="submit">-->
<button
type=
"button"
style=
"width: 100%"
class=
"btn btn-primary full-width m-b btn-xs"
onclick=
"save()"
>
登录
</button>
</div>
<div
class=
"copyright"
>
版权所有©2018 杭州XX网络有限公司
<br/>
(推荐IE10以上浏览器或谷歌浏览器或firefox浏览器, 获得更快响应速度)
</div>
</div>
<?php
$this
->
load
->
view
(
'common/footer'
);
?>
<?php
$this
->
load
->
view
(
'common/footer'
);
?>
<script>
if
(
window
!=
top
)
{
// 判断当前的window对象是否是top对象
top
.
location
.
href
=
window
.
location
.
href
;
// 如果不是,将top对象的网址自动导向被嵌入网页的网址
}
function
save
()
{
//获得款中的节点
var
targetUrl
=
$
(
"#edit"
).
attr
(
"action"
);
//需要填写目的url
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment