ation.href = qiKanWangZhi+"/article/"+nian+"/"+issn+"/"+articleId; }); }else{ window.location.href = qiKanWangZhi+"/EN/article/downloadArticleFile.do?attachType="+attachType+"&id="+articleId; } $('.layui-layer').hide(); $('.layui-layer-shade').hide(); } function submitLogin(login_id, remote_password){ var login_id = document.getElementById(login_id).value; var remote_password = document.getElementById(remote_password).value; var pars = "login_id="+login_id+"&remote_password="+remote_password; jQuery.post("http://www.whxb.pku.edu.cn/EN/user/login.do?" + new Date(), pars, function(data){ window.subwin = new SubWindow("下载文件",data,null,null,null,null,'620px','310px',null,null,"#dddddd","true",null,null,"true",null); subwin.show(); }); } function close(){ subwin.close(); } function showArticleFile(url,attachType,articleId){ var viewAttach = url+"/EN/article/showArticleFile.do?attachType="+attachType+"&id="+articleId; window.open(viewAttach,"下载文件","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=520,height=200,left=88,top=88"); } function searchKeyword(url,keyword){ var form = document.refForm; form.keyword.value=keyword; form.author.value=""; form.action = url+"/EN/article/showCorrelativeArticle.do"; form.submit(); } function searchEnKeyword(url,id,keyword){ var form = document.refForm; form.searchSQL.value="(("+keyword+"[Keyword]) AND "+id+"[Journal])"; form.action = url+"/EN/article/advancedSearchResult.do"; form.submit(); } function searchAuthor(url,author){ var form = document.refForm; form.author.value=author; form.keyword.value=""; form.action = url+"/EN/article/showCorrelativeArticle.do"; form.submit(); } function addtobookshelf(url,articleId){ var addbookshelf = ""; addbookshelf = url+"/EN/article/addBookShelf.do?id="+articleId; window.open(addbookshelf,"添加到书架",""); } function showTxtFile(url,articleId){ var showtxtfile = ""; showtxtfile = url+"/EN/article/showTxtFile.do?id="+articleId; window.open(showtxtfile,"引用管理器",""); } function addComment(url,articleId){ var addComment = ""; addComment = url+"/EN/comment/addComment.do?id="+articleId; window.open(addComment,"文章反馈","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=520,height=300,left=88,top=88"); } function findPassword(email){ var emailReg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/ var email = document.getElementById(email).value; var matchemail = emailReg.test(email); var pars = "email="+email; if(email == '' || email == null){ alert("Email不能为空!"); return false; } else { if(matchemail){ jQuery.post("http://www.whxb.pku.edu.cn/EN/user/findPassword.do?" + new Date(), pars, function(data){ subwin.close(); }); }else{ alert("Email格式不正确"); } } } function chakan(shifoukaifang,id,url){ var url2 = "http://www.whxb.pku.edu.cn/fileup/1000-6818/SUPPL/"+url; window.location.href = "http://www.whxb.pku.edu.cn/CN/suppl/validateVideo.do?url="+url2+"&id="+id+"&shifoukaifang="+shifoukaifang; }