123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
- <meta name="robots" content="noindex,nofollow">
- <title>{$sys_name}</title>
- <base href="{base_url()}"/>
- <link rel="shortcut icon" href="favicon.ico" />
- <link href="static/css/bootstrap.min.css" rel="stylesheet">
- <link rel="stylesheet" href="static/css/style.css">
- <script language="javascript" type="text/javascript"> var SITE_URL = "/";</script>
- <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
- <!--[if lt IE 9]>
- <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.js"></script>
- <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
- <![endif]-->
- </head>
- <body style="background:#2f5896; background-size: cover;">
- <div class="login_box clearfix">
- <div class="login_l_img"><img src="static/images/login-img.png" /></div>
- <div class="login">
- <div class="login_logo"><img src="static/images/login_logo.png" /></div>
- <div class="login_name">
- <p>{$sys_name}</p>
- </div>
- <form id="validateform" method="post">
- <input type="text" name="username" id="username" autocomplete="off" placeholder="帐号名" datatype="s5-18" nullmsg="帐号名不能为空!">
- <input type="password" name="password" id="password" autocomplete="off" placeholder="密码" datatype="*" nullmsg="密码不能为空!">
- <span class="hidden" id="msg"></span>
- <input value="登录" style="width:100%;" type="submit">
- </form>
- </div>
- <div class="copyright">版权所有©2016-2018</div>
- </div>
- <script type="text/javascript" charset="utf-8" src="static/js/jquery.js"></script>
- <script type="text/javascript" charset="utf-8" src="static/js/bootstrap.js"></script>
- <script type="text/javascript" charset="utf-8" src="static/js/Validform_v5.3.2.min.js"></script>
- <script type="text/javascript" charset="utf-8" src="static/js/layer/layer.js"></script>{literal}
- <script language="javascript" type="text/javascript">
- if (top.location != location)
- {
- top.location.href = location.href;
- }
- $(function(){
- $("#username,#password").focus(function () {
- $("#msg").addClass("hidden").text("");
- })
- $("#validateform").Validform({
- tiptype: function (msg, o) {
- if (o.type == 3) {
- layer.tips(msg, o.obj, {
- tips: [1, '#ff6666'] //还可配置颜色
- });
- }
- },
- beforeSubmit: function (curform) {
- $.post('checklogin',
- {
- 'username': $("#username").val(),
- 'password': $("#password").val()
- },
- function (data) {
- if (data.msg != "" && data.msg != undefined) {
- $("#msg").removeClass("hidden").text(data.msg);
- return false;
- }
- if (data.url != "" && data.url != undefined) {
- window.location.href = data.url;
- return false;
- }
- }
- );
- return false;
- }
- })
- })
- </script>{/literal}
- </body>
- </html>
|