Newer
Older
alarm / WebRoot / login.jsp
zhout on 2 Mar 2022 2 KB first commit
<%@page contentType="text/html;charset=UTF-8" %>

<%@include file="/taglibs.jsp" %>

<!DOCTYPE html>

<html>

<head lang="en">

    <meta charset="UTF-8">

    <title></title>

    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>

    <meta http-equiv="Cache-Control" content="no-store"/>

    <meta http-equiv="Pragma" content="no-cache"/>

    <meta http-equiv="Expires" content="0"/>

    <link type="text/css" rel="stylesheet" href="${ctx}/s/login/LoginCss.css" media="screen"/>

    <script type="text/javascript" src="${ctx}/s/jquery-easyui-1.4.3/jquery.min.js"></script>

    <script type="text/javascript">

        if (window != top){

            top.location.href = location.href;

        }

        var submitForm = function () {

            $.ajax({

                type: "POST",

                url: "${ctx}/alarm/accept-person!login.do",

                data: $('#loginForm').serialize(),

                dataType: 'json',

                success: function (data) {

                    var jData = data;

                    if (jData.success == true) {

                        window.location.href = "${ctx}/index.jsp";

                    }
                    else {

                        alert(jData.message);

                    }

                },

                error: function (request) {

                    alert("登录失败!");

                }
            });

        }

    </script>

</head>

<body class="Login">

<form id="loginForm" action="" method="post">

    <div class="login_bg">

        <img src="s/login/images/login_bg1.png"/>

        <div class="login_dw"></div>

    </div>

    <div class="login_fot">

        <img src="s/login/images/login_fotBg.jpg"/>

        <div class="login_BT">

            地下管线运行监测系统

        </div>

        <div class="login_div">

            <input type="text" name="personCode" class="userName" class="text required"/>

            <input type="password" name="password" class="password" class="text required"/>

            <input type="button" class="LoginBtn" name="submit" onclick="submitForm()"/>

        </div>

    </div>

</form>

</body>

</html>

<script type="text/javascript">

    $(".login_bg").css('height', $('.Login').height() - $('.login_fot').height() + 'px');

    window.onresize = function () {

        $(".login_bg").css('height', $('.Login').height() - $('.login_fot').height() + 'px');

    }
</script>