133ff695 by yangjianbin

init

1 parent 0d64182c
...@@ -22,8 +22,8 @@ class CheckLogin ...@@ -22,8 +22,8 @@ class CheckLogin
22 }*/ 22 }*/
23 if (preg_match("/work|config|data|finance|loan|perm|tool|user/i", uri_string())) { 23 if (preg_match("/work|config|data|finance|loan|perm|tool|user/i", uri_string())) {
24 if (!$session->islogin) { 24 if (!$session->islogin) {
25 redirect('login'); 25 // redirect('login');
26 return; 26 // return;
27 } 27 }
28 } 28 }
29 29
......
1 <?php 1 <?php
2 $this->load->view('common/header', array('styles' => array( 2 $this->load->view('common/header', array('styles' => array(
3 '/resource/login.css') 3 '/resource/login.css')
4 )); 4 ));
5 ?> 5 ?>
6 6
7 <body xmlns="http://www.w3.org/1999/html"> 7 <body xmlns="http://www.w3.org/1999/html">
8 <div class="login_box"> 8 <div class="login_box">
9 <div class="login"> 9 <div class="login">
10 <div class="login_logo"> 10 <div class="login_logo">
11 <img src="/resource/logo.png"> 11 <img src="/resource/logo.png">
...@@ -17,21 +17,26 @@ ...@@ -17,21 +17,26 @@
17 <input name="username" type="text" placeholder="用户名"> 17 <input name="username" type="text" placeholder="用户名">
18 <input name="password" type="password" placeholder="密码"> 18 <input name="password" type="password" placeholder="密码">
19 </form> 19 </form>
20 <!-- <input value="登录" type="submit">--> 20 <!-- <input value="登录" type="submit">-->
21 <button type="button" style="width: 100%" class="btn btn-primary full-width m-b btn-xs" onclick="save()">登录</button> 21 <button type="button" style="width: 100%" class="btn btn-primary full-width m-b btn-xs" onclick="save()">登录
22 </button>
22 23
23 24
24 </div> 25 </div>
25 <div class="copyright"> 26 <div class="copyright">
26 版权所有©2018 杭州XX网络有限公司 27 版权所有©2018 杭州XX网络有限公司
27 <br /> 28 <br/>
28 (推荐IE10以上浏览器或谷歌浏览器或firefox浏览器, 获得更快响应速度) 29 (推荐IE10以上浏览器或谷歌浏览器或firefox浏览器, 获得更快响应速度)
29 </div> 30 </div>
30 </div> 31 </div>
31 32
32 33
33 <?php $this->load->view('common/footer'); ?> 34 <?php $this->load->view('common/footer'); ?>
34 <script> 35 <script>
36 if (window != top) { // 判断当前的window对象是否是top对象
37 top.location.href = window.location.href; // 如果不是,将top对象的网址自动导向被嵌入网页的网址
38 }
39
35 function save() { 40 function save() {
36 //获得款中的节点 41 //获得款中的节点
37 var targetUrl = $("#edit").attr("action");//需要填写目的url 42 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!