Edit D:\chineseall_products\chineseall_digitallib\digitallib\digitalLib6\pages\standard\js\index.js
var isQueue = false; function login(isvalidate) { if (isQueue) return false; $("#login_info").html(""); isQueue = true; var userName = $.trim($("#userName").val()); var password = $.trim($("#password").val()); if (userName.length == 0) { $("#login_info").html("???????????"); $("#userName").focus(); return false; } if (password.length < 6) { $("#login_info").html("????????????"); $("#password").focus(); return false; } if(isvalidate == 1) { var verificationcode = $("#verificationcode").val(); if(verificationcode.length == 0) { $("#login_info").html("?????????"); $("#verificationcode").focus(); return false; } } var isRememberPass = 0; if($("input[name='isRememberPass']:checked").length > 0) isRememberPass = $("input[name='isRememberPass']:checked").val(); var isCookieValue = $("#isCookieValue").val(); var key = CryptoJS.enc.Utf8.parse("digitallibrary00"); var iv = CryptoJS.enc.Utf8.parse("chinesepublisher"); var tempUserName = document.getElementById("userName").value; var tempPassword = document.getElementById("password").value; $("#userName").val(CryptoJS.AES.encrypt(userName, key, { iv : iv, mode : CryptoJS.mode.CBC, padding : CryptoJS.pad.ZeroPadding })); userName = $("#userName").val(); $("#userName").val(tempUserName); if(isCookieValue != 1) { $("#password").val(CryptoJS.AES.encrypt(password, key, { iv : iv, mode : CryptoJS.mode.CBC, padding : CryptoJS.pad.ZeroPadding })); password = $("#password").val(); $("#password").val(tempPassword); } var data = { "vo.userName" : userName, "vo.password" : password, "isRememberPass" : isRememberPass, "loginToken": $("#loginToken").val() }; if(isvalidate == 1){ data = { "vo.userName" : userName, "vo.password" : password, "isRememberPass" : isRememberPass, "loginToken": $("#loginToken").val(), "verificationcode":verificationcode }; } $.ajax({ url : ppath+'/ajaxLogin.action', data : data, type : 'post', dataType : 'json', success : function(res) { if (!res || res.result == undefined) { isQueue = false; $("#login_info").html("?????????,???????????"); } else if (res.result == "0" || res.result == "-1" || res.result == "-2") { isQueue = false; if (res.msg != undefined) { $("#login_info").html(res.msg); if (res.result == "0") { $("#userName").focus(); } else { $("#password").focus(); } } else if (res.vMsg != undefined) { $("#login_info").html(res.vMsg); } $("#loginToken").val(res.loginToken); } else if (res.result == "1") { window.location.href = ppath+"/?token=" + res.token; } }, error : function(XMLHttpRequest, textStatus, errorThrown) { isQueue = false; $("#login_info").html("?????????,???????????"); } }); } function init() { try{ // ?????? $('.slider7').bxSlider({ infiniteLoop : true, randomStart : false, auto : true }); }catch(e){} // ?????? $("#password").change(function() { $("#isCookieValue").val("0") }); $(".bookRankingHover").hover(function() { $(".bookRankingHover .rank_list:hidden").show(); $(".bookRankingHover .clear:visible").hide(); $(this).children(".rank_list").hide(); $(this).children(".clear").show(); }, function() { }); $(".mediaRankingHover").hover(function() { $(".mediaRankingHover .rank_list:hidden").show(); $(".mediaRankingHover .clear:visible").hide(); $(this).children(".rank_list").hide(); $(this).children(".clear").show(); }, function() { }); // app???????? $(".ewm_loginr").hover(function() { $(".slide_box").show(); }, function() { $(".slide_box").hide(); }) // ????????? $("div.search_zt a").hover(function() { $(this).children().show(); }, function() { $(this).children().hide(); }); // ???tab??? $("ul.tabs li").click(function() { $("ul.tabs li.active").removeClass("active"); $(this).addClass("active"); $(".tab_content").hide(); $("#" + $(this).attr("tab")).fadeIn(); }); $("input[name='vo.type']").click(function(){ var v = Number($(this).attr("objVal")); switch(v) { case 0: $("#searchWhere").attr("name", "keyword"); $("#searchWhere").attr("placeholder", "?????????"); break; case 1: $("#searchWhere").attr("name", "vo.bookName"); $("#searchWhere").attr("placeholder", "????????"); break; case 2: $("#searchWhere").attr("name", "vo.bookAuthor"); $("#searchWhere").attr("placeholder", "????????"); break; case 3: $("#searchWhere").attr("name", "vo.bookPublisher"); $("#searchWhere").attr("placeholder", "?????????"); break; case 4: $("#searchWhere").attr("name", "vo.bookIsbn"); $("#searchWhere").attr("placeholder", "?????SBN"); break; case 5: $("#searchWhere").attr("name", "vo.title"); $("#searchWhere").attr("placeholder", "??????????????"); break; case 6: $("#searchWhere").attr("name", "vo.title"); $("#searchWhere").attr("placeholder", "??????????????"); break; case 7: $("#searchWhere").attr("name", "vo.allKeyword"); $("#searchWhere").attr("placeholder", "?????????"); break; } }); $("#searchForm").submit(function() { if($.trim($("#searchWhere").val()) == "") { $("#searchWhere").focus(); return false; } return true; }); $("#searchWhere").focusin(function() { $(this).css("background-color", "#fffbd6"); }).focusout(function() { $(this).css("background-color", ""); }); $("input.gjz_digital").focusin(function() { $(this).css("background-color", "#fffbd6"); }).focusout(function() { $(this).css("background-color", ""); }); $("input.gjz_paper").focusin(function() { $(this).css("background-color", "#fffbd6"); }).focusout(function() { $(this).css("background-color", ""); }); $("input.btn_advanced").click(function() { var obj = $("input.gjz_digital").eq(0); if($.trim(obj.val()) == "") { obj.focus(); return; } $("#advancedSearchForm").submit(); }); $("input.btn_paper").click(function() { var obj = $("input.gjz_paper").eq(0); if($.trim(obj.val()) == "") { obj.focus(); return; } $("#advancedSearch4FuRongForm").submit(); }); $("select.se_type").change(function() { $(this).nextAll("input.type").val($(this).val()); }); $("select.se_type_paper").change(function() { $(this).nextAll("input.type_paper").val($(this).val()); }); $("select.se_filter").change(function() { $(this).nextAll("input.filter").val($(this).val()); }); $("select.se_filter_paper").change(function() { $(this).nextAll("input.filter_paper").val($(this).val()); }); } function displayHotList(objHead,idx1,idx2) { document.getElementById(objHead+"Li_"+idx1).style.color = "#92aee6"; document.getElementById(objHead+"Li_"+idx2).style.color = ""; document.getElementById(objHead+"Ul_"+idx1).style.display = "block"; document.getElementById(objHead+"Ul_"+idx2).style.display = "none"; } function displaySection(objHead,idx1,idx2) { document.getElementById(objHead+"Li_"+idx1).style.color = "#92aee6"; document.getElementById(objHead+"Li_"+idx2).style.color = ""; document.getElementById(objHead+"Ul_"+idx1).style.display = "block"; document.getElementById(objHead+"Ul_"+idx2).style.display = "none"; }
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de