Edit D:\rfid\libsystem\page\login-old.jsp
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE html> <html> <head> <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"> <title>RFID?????????</title> <link href="${pageContext.request.contextPath}/css/login.css" type="text/css" rel="stylesheet"> </head> <body> <div id="container"><div id="output"></div></div> <div class="login"> <div class="message">RFID?????????-????????</div> <div id="darkbannerwrap"></div> <div> <div class="showMessage"></div> <input id="account" item-type="record" name="account" placeholder="?????" required="" type="text"> <hr class="hr15"> <input id="password" item-type="record" name="password" placeholder="???" required="" type="password"> <hr class="hr15"> <input value="???" onclick="login()" style="width:100%;" type="submit"> <hr class="hr20"> </div> </div> <svg id="ckLine" xmlns="http://www.w3.org/2000/svg" width="1000" height="1000"></svg> <div class="copyright">? 2018 by RFID</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}/third-party/vector/vector.js"></script> <script type="text/javascript"> var itemArrLength=0; $(function(){ var victor = new Victor("container", "output"); /* var theme = [ ["#18bbff", "#00486b"], ["#00486b", "#18bbff"] ] var color = theme[0]; $(this).mouseover(function(){ victor(color).set(); }) */ //????????? $("#account").focus(); focusItem(login); // ????? ???dom id }); 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("???????????"); if($("#password").val().length==0) return showMessage("?????????"); 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) { if (data.status == "9004"){ showMessage(data.message+"<br>??3???????????"); setTimeout(getMenu,3000); } else if (data.status == "0") { getMenu(); }else showMessage(data.message); } }); /* $.post(url, param, function(data) { if (data.status == "0") { url = "${pageContext.request.contextPath}/par/operator/getMenu.do"; $.post(url, param, function(data) { if (data.status == "0") { mystorage.clear(); mystorage.set("menu",data.rows[0]); var url="${pageContext.request.contextPath}/page/index.jsp"; window.location=url; }else showMessage(data.message); }, 'json'); }else showMessage(data.message); }, 'json'); */ } function showMessage(text){ $(".showMessage").html(text); } function getMenu(){ var url = "${pageContext.request.contextPath}/par/operator/getMenu.do"; $.post(url, {}, function(data) { if (data.status == "0") { mystorage.clear(); mystorage.set("menu",data.rows[0]); var url="${pageContext.request.contextPath}/page/index.jsp"; window.location=url; }else showMessage(data.message); }, 'json'); } </script> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de