Edit D:\rfid\libsystem\page\login.jsp
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <%@ page import="com.jishen.common.MyJspUtils"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <!-- ???360?????????????(webkit) --> <meta name="renderer" content="webkit"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title><%=MyJspUtils.getConfig("5")%></title> <link rel="icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon" /> <style type="text/css"> input:focus{ outline:none } html{ background: url('${pageContext.request.contextPath}/images/bg_03.gif?version=<%=Math.random()%>') no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; z-index: 1; } .center-box{ margin: auto; width: 80%; margin-top: 7%; } .logo-box{ height: 80px; } .logo-title{ color:#fff; font-size: 26px; line-height: 80px; font-weight: bold; } .logo-title-s{ color:#00dfdc; font-size: 26px; line-height: 80px; margin-left: 10px; } .login-left{ float: left; width: 65%; background-color: #fff; height: 460px; background: url('${pageContext.request.contextPath}/images/login_bg02.gif?version=<%=Math.random()%>') no-repeat; background-size:100% 100%; z-index: 2; } .login-right{ float: left; width:35%; background-color: #fff; height: 460px; } .login-right .login-box-div{ padding:20px 40px 50px; } .login-box-div .box-input{ margin-top:30px; color:#222; font-size:14px; } .box-input .input-tip-title{ color:#999; font-size:14px; font-style:normal; } .login-box-div .box-input .input-text{ display:block; width:100%; padding:10px 0; border:none; border-bottom:2px #ddd solid; color:#555; font-size:22px; } .login-box-div .box-input .input-text:hover{ display:block; width:100%; padding:10px 0; border:none; border-bottom:2px #3085ee solid; color:#555; font-size:22px; } .login-box-div .input-button{ display:block; width:100%; height:50px; line-height:50px; margin:40px 0 16px; border:none; background:#3085ee; font-size:18px; color:#fff; cursor: pointer; border-radius: 5px; } .login-box-forget{ overflow:hidden;zoom:1; color:#999; font-size:14px; margin-top: 30px; } .login-box-forget .forget_pw{ float:right; color:#999; } .logo-tile{ /* background: url('${pageContext.request.contextPath}/images/login-logo_03.gif') no-repeat center center fixed; background-size:100% 100%; z-index: 3;*/ height: 100px; text-align: center; line-height: 100px; } .mian-box{ height: 460px; } @media all and (min-height:800px) and (max-height:1080px) { .logo-tile{ height: 200px; } .logo-tile img{ margin-top: 60px; } .login-left{ height: 600px; } .login-right{ height: 600px; } .mian-box{ height: 600px; } } </style> <script language="JavaScript" type="text/javascript"> if ((navigator.userAgent.indexOf('MSIE') >= 0) && (navigator.userAgent.indexOf('Opera') < 0)){ alert('?????????????????,???????????E????????????chrome????????360???????????????????????') } </script> </head> <body> <div class="center-box"> <div class="logo-box"> <div class="logo-title"> <img alt="" src="${pageContext.request.contextPath}/images/login_title_logo.gif?version=<%=Math.random()%>" style="height: 46px;line-height: 80px;vertical-align:middle;"> <%=MyJspUtils.getConfig("4")%> <span class="logo-title-s">eLibrary System</span> </div> </div> <div class="mian-box"> <div class="login-left"> </div> <div class="login-right"> <div class="logo-tile" > <img alt="" src="${pageContext.request.contextPath}/images/login-logo_03.gif?version=<%=Math.random()%>" style="height: 80px;padding: 20px;"> </div> <div class="login-box-div"> <div class="box-input" style="margin-top: 0;"> <i class="input-tip-title">????????<label class="showMessage" style="color: red;margin-left: 10px;" ></label></i> <input class="input-text" id="account" item-type="record" name="account" type="text"> </div> <div class="box-input" > <i class="input-tip-title">????????<label class="showMessage1" style="color: red;margin-left: 10px;" ></label></i> <input class="input-text" id="password" item-type="record" name="password" type="password"> </div> <div class="box-input" > <input type="button" class="input-button" value="???" onclick="login()"> </div> <div class="login-box-forget"> <input type="checkbox" id="remebers" class="input-checkbox">????????? <!-- <a href="#" class="forget_pw" >???????</a> --> </div> </div> </div> </div> </div> </body> <script type="text/javascript" src="${pageContext.request.contextPath}/third-party/jquery-easyui-1.5.3/jquery.min.js"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/js/mystorage.js"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/js/initsystile.js"></script> <script type="text/javascript"> var base_path = "${pageContext.request.contextPath}/"; var itemArrLength=0; $(function(){ //????????? $("#account").focus(); focusItem(login); // ????? ???dom id initCheckBoxFun(); autoLogin(); initSystemTitle(); }); function autoLogin(){ var loginAccount = localStorage.getItem("loginAccount"); var loginPassword = localStorage.getItem("loginPassword"); if(loginAccount && loginAccount.leloginPassword && loginPassword.length >0 ){ $("#remebers").attr("checked",true); $("#account").val(loginAccount); $("#password").val(loginPassword); login(); } } function initCheckBoxFun() { $('#remebers').click(function() { if (this.checked) { if ($("#account").val() == "") { $("#remebers").attr("checked",false); return alert("????????????"); $('#remebers').checked=false; } if ($("#password").val() == "") { $("#remebers").attr("checked",false); return alert("???????????"); } localStorage.setItem("loginAccount",$("#account").val()); localStorage.setItem("loginPassword",$("#password").val()); } else { localStorage.removeItem("loginAccount"); localStorage.removeItem("loginPassword"); } }); } function focusItem(funcName){ var selector = $('[item-type="record"]'); itemArrLength=selector.length; selector.each(function(index, element) { $("#"+element.id).on('keypress',function(event){ if(event.keyCode == 13) { selector.each(function(idx, element) { if(index==idx-1){ element.focus(); return false; }else if(itemArrLength-1==index) funcName(); }); } }); }); } function login(){ var url = "${pageContext.request.contextPath}/par/operator/login.do"; var param = { }; if($("#account").val().length==0) return showMessage("???????????",0); if($("#password").val().length==0) return showMessage("?????????",1); param.account=$("#account").val(); param.password=$("#password").val(); $.ajax({ type : "POST", url : url, data : param, timeout : 10000, //????????10?? dataType : 'json', error : function(XMLHttpRequest, textStatus, errorThrown) { //TODO: ???status?? http status code????? 408 // ???????????????????????????????????????null????????? //??"timeout", "error", "notmodified" ?? "parsererror"?? showMessage("??????["+textStatus+"]???????????????????????"); }, success : function(data) { var rowOp = data.rows[0]; if (data.status == "9004"){ showMessage(data.message+"<br>??3???????????"); setTimeout(function(){getMenu(rowOp)},3000); } else if (data.status == "0") { getMenu(rowOp); }else showMessage(data.message); } }); } function showMessage(text,type){ if(type){ if(type == 0) $(".showMessage").html(text); else{ $(".showMessage").html(""); $(".showMessage1").html(text); } }else{ $(".showMessage").html(text); $(".showMessage1").html(""); } } function getMenu(rowOp){ var url = "${pageContext.request.contextPath}/par/operator/getMenu.do"; $.post(url, {}, function(data) { if (data.status == "0") { mystorage.clear(); mystorage.set("libcode", rowOp.libcode); mystorage.set("libname", rowOp.libname); mystorage.set("account", rowOp.account); mystorage.set("username", rowOp.username); mystorage.set("operid", rowOp.operid); mystorage.set("completecode", rowOp.completecode); mystorage.set("lowerlibcode", rowOp.lowerlibcode); mystorage.set("current_javascript_version", rowOp.current_javascript_version); mystorage.set("menu",data.rows[0]); defaultPage(); }else showMessage(data.message); }, 'json'); } function defaultPage(){ var param = {}; param.pk = "indexconfig"; var url = base_path + 'lib/pageconfig/get.do'; $.post(url, param, function(data) { var url="${pageContext.request.contextPath}/page/main.jsp"; var page = "main"; if (data.status == "0") { var json = data.rows[0]; var paramjson = JSON.parse(json.paramjson); if(paramjson.page && paramjson.page!="main"){ url="${pageContext.request.contextPath}/page/index.jsp?menuIndex="+paramjson.page; } } window.location=url; }, 'json'); } </script> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de