|
@@ -8,65 +8,56 @@
|
|
|
<!DOCTYPE html>
|
|
|
<html>
|
|
|
<head>
|
|
|
-<title>登录</title>
|
|
|
-<link rel="icon" href="${ctx}/static/favicon.ico" type="image/x-icon" />
|
|
|
-<script>
|
|
|
-function dl1(){
|
|
|
- document.getElementById("loginForm").submit();
|
|
|
-}
|
|
|
-String.prototype.trim=function(){
|
|
|
- return this.replace(/(^\s*)|(\s*$)/g, "");
|
|
|
- }
|
|
|
-
|
|
|
-function keyLogin(){
|
|
|
- if (event.keyCode==13) {
|
|
|
- dl();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- function dl(){
|
|
|
- var uname = $("#username").val();
|
|
|
- var pwd = $("#password").val();
|
|
|
- if(uname==null||uname.trim()==""){
|
|
|
- $.messager.alert("提示", "请输入用户名");
|
|
|
- return ;
|
|
|
- }
|
|
|
- if(pwd==null||pwd.trim()==""){
|
|
|
- $.messager.alert("提示", "请输入密码");
|
|
|
- return ;
|
|
|
- }
|
|
|
- $('#loginForm').form('submit', {
|
|
|
- url : $.ctx + '/login',
|
|
|
- onSubmit : function() {
|
|
|
-
|
|
|
- },
|
|
|
- success : function(data, status) {
|
|
|
- if (data) {
|
|
|
- data = $.parseJSON(data);
|
|
|
- }
|
|
|
- if (data.success) {
|
|
|
- var newwin=window.open($.ctx+"/main","","top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+(window.screen.availWidth-10)+",height="+(window.screen.availHeight-30));//修改宽度和高度可控制窗口的大小
|
|
|
- newwin.focus();
|
|
|
- window.opener=null;
|
|
|
- window.open('', '_self', '');
|
|
|
- window.close();
|
|
|
- }
|
|
|
- else {
|
|
|
- $.messager.alert("提示", "用户名或密码错误");
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
-</script>
|
|
|
+ <title>登录</title>
|
|
|
+ <link rel="icon" href="${ctx}/static/favicon.ico" type="image/x-icon" />
|
|
|
+ <link rel="shortcut icon" href="${ctx}/static/favicon.ico" type="image/x-icon" />
|
|
|
+ <script type="text/javascript">
|
|
|
+ var basePath = '${ctx}';
|
|
|
+ </script>
|
|
|
+ <link rel="stylesheet" type="text/css" href="${ctx }/static/xt/css/login.css" />
|
|
|
+ <script type="text/javascript" src="${ctx}/static/easyui/jquery.min.js"></script>
|
|
|
+ <script type="text/javascript" src="${ctx}/static/xt/js/sys/login.js"></script>
|
|
|
</head>
|
|
|
-
|
|
|
-<body onkeydown="keyLogin()" onload="">
|
|
|
-
|
|
|
+<body class="l_bg">
|
|
|
<form id="loginForm" action="${ctx}/login" method="post" >
|
|
|
-<input type="text" id="username" name="username" class="login_admin" value="admin" placeholder="请输入用户名" ></div>
|
|
|
-<input type="password" id="password" name="password" class="login_password" value="888888" placeholder="请输入密码">
|
|
|
-<input type="hidden" id="_type" name="_type" value="web" />
|
|
|
-<button value="" name="" type="submit" >登录</button>
|
|
|
+ <div class="l_all">
|
|
|
+ <div class="l_boock">
|
|
|
+ <div class="l_headdiv">
|
|
|
+ <div class="l_headblock">
|
|
|
+ <div class="l_hleft">
|
|
|
+ <img src="${ctx }/static/xt/images/login/salute.png" class="imgsalute"/>
|
|
|
+ </div>
|
|
|
+ <div class="l_hright">
|
|
|
+ <img src="${ctx }/static/xt/images/login/logo.png" class="imglogo"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="l_centerdiv">
|
|
|
+ <img src="${ctx }/static/xt/images/login/center.png" class="imgcenter"/>
|
|
|
+ </div>
|
|
|
+ <div class="l_logindiv">
|
|
|
+ <table class="tablogin">
|
|
|
+ <tr class="trlogin">
|
|
|
+ <td class="tdname">
|
|
|
+ <input type="text" id="username" name="username"
|
|
|
+ class="login_admin" value="admin" placeHolder="请输入用户名" >
|
|
|
+ </td>
|
|
|
+ <td class="tdsplit"></td>
|
|
|
+ <td class="tdpwd">
|
|
|
+ <input type="password" id="password" name="password"
|
|
|
+ class="login_password" value="888888" placeHolder="请输入密码">
|
|
|
+ </td>
|
|
|
+ <td class="tdsplit"></td>
|
|
|
+ <td class="tdlogin" id="tdlogin"
|
|
|
+ onmouseover="btnMouseOver(this)" onmouseout="btnMouseOut(this)"></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <div class="bottomdiv">
|
|
|
+ <img src="${ctx }/static/xt/images/login/unit.png" class="imgunit"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</form>
|
|
|
</body>
|
|
|
</html>
|