133ff695 by yangjianbin

init

1 parent 0d64182c
......@@ -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;
}
}
......
<?php
$this->load->view('common/header', array('styles' => array(
$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_box">
<div class="login">
<div class="login_logo">
<img src="/resource/logo.png">
......@@ -17,21 +17,26 @@
<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>
<!-- <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 />
<br/>
(推荐IE10以上浏览器或谷歌浏览器或firefox浏览器, 获得更快响应速度)
</div>
</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
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!