Edit D:\rfid\libsystem\js\app_com.js
var firstMenu=null;var isFullScreen=false;var itemArrLength=0;var bookMarkJson;$(function(){firstMenu=$("#firstMenu");getReaderFld();focusItem(modifyPwd);initLicenseInfo();$("#menu-tabs").tabs({onContextMenu:function(a,b){if(b!="???"){a.preventDefault();$("#tabsMenu").menu("show",{left:a.pageX,top:a.pageY}).data("tabTitle",b)}},onSelect:function(c,a){var d=$("#menu-tabs").tabs("getTab",a);var b=d.panel("options").id;bookMarkFun(b)}});$("#tabsMenu").menu({onClick:function(a){closeTab(this,a.name)}});$(".navbar-nav-menu li").each(function(a){$(this).click(function(){$(".navbar-nav-menu li.cur-menu").removeClass("cur-menu");$(this).addClass("cur-menu");addAccordions(a);vCurMenuIndex=a})});vCurMenuIndex=parseInt(vCurMenuIndex);getBookMarkData(vCurMenuIndex);serachMenu()});function initLicenseInfo(){var a=base_path+"lib/common/getLibName.do";var b={};$.post(a,b,function(c){if(c.status=="0"){getLibName(c.rows[0])}else{openMessageDlg(c.message)}},"json")}function serachMenu(){var o=[];var m=[{code:"acq",dirFolder:"acquisition",name:"???-??????"},{code:"cat",dirFolder:"catalogue",name:"???-??????"},{code:"hld",dirFolder:"collection",name:"???-??????"},{code:"cir",dirFolder:"circulation",name:"????-??????"},{code:"per",dirFolder:"periodical",name:"???-??????"},{code:"par",dirFolder:"parameter",name:"??????-??????"},{code:"sys",dirFolder:"application",name:"??????-??????"}];for(var g=0;g<m.length;g++){var f=getMenu(m[g].code);var h=m[g].dirFolder;var n=m[g].name;for(var c=0;c<f.length;c++){var l=f[c].submenus;for(var d=0;d<l.length;d++){var b=l[d].name;var a=getLiknUrl(h,l[d].url);var e={code:a+"|"+l[d].iconcls+"|"+l[d].id,name:b,group:n};o.push(e)}}}$("#searchmenu").combobox({data:o,valueField:"code",textField:"name",groupField:"group",onLoadSuccess:function(){},onChange:function(j,i){if(j&&j.length>0){if(j.indexOf("/")>0){var p=$("#searchmenu").combobox("getText");var k=j.split("|");addTab(p,k[0],k[1],k[2])}}}})}function addBookMark(){var b=$("#menu-tabs").tabs("getSelected");if(b){var c=b.panel("options").title;var j=b.panel("options").id;if(!bookMarkJson){bookMarkJson={bookmark:[]}}var k=bookMarkJson.bookmark;var l=false;for(var d=0;d<k.length;d++){if(j==k[d].id){k.splice(d,1);l=true}}if(k.length>20){return openMessageDlg("???????????20????????")}var e=b.panel("options").iconCls.replace("e-icon fa fa-","");var g=b.panel("body");var a=g.find("iframe").attr("src");if(!l){var h={id:j,title:c,url:a,iconCls:e};bookMarkJson.bookmark.push(h)}var f={};f.type="bookmark";f.paramjson=JSON.stringify(bookMarkJson);var a=base_path+"lib/pageconfig/save.do";$.post(a,f,function(i){if(i.status=="0"){if(l){openMessageDlg("??????,??????????????????????");bookMarkFun()}else{openMessageDlg("??????,?????????????????,????????????????????????");bookMarkFun(j)}moveMarkMenu()}else{openMessageDlg(i.message)}},"json")}}function moveMarkMenu(){if(vCurMenuIndex==7){getBookMarkData()}}function getBookMarkData(){var b={};b.pk="bookmark";var a=base_path+"lib/pageconfig/get.do";$.post(a,b,function(c){if(c.status=="0"){if(c.rows[0]){bookMarkJson=JSON.parse(c.rows[0].paramjson)}}addAccordions(vCurMenuIndex)},"json")}function getSysDataByBookMark(){var g=[];var a=[];var f=bookMarkJson.bookmark;for(var d=0;d<f.length;d++){var c=f[d].url;var b={iconcls:f[d].iconCls,id:f[d].id,menuid:"7900",modulecode:"sys",name:f[d].title,url:"bookmarkfalg/"+c};a.push(b)}var e={id:"7900",modulecode:"sys",submenus:a,title:"??????"};g.push(e);return g}function bookMarkFun(d){if(d){var a=false;if(bookMarkJson){var c=bookMarkJson.bookmark;for(var b=0;b<c.length;b++){if(d==c[b].id){a=true;$("#bookmark").attr("title","???????????");$("#bookmark").linkbutton({iconCls:"e-icon fa fa-bookmark-o"})}}}if(!a){$("#bookmark").attr("title","???????????????");$("#bookmark").linkbutton({iconCls:"e-icon fa fa-bookmark"})}}else{$("#bookmark").attr("title","???????????????");$("#bookmark").linkbutton({iconCls:"e-icon fa fa-bookmark"})}}function closeTab(g,f){var b=$(g).data("tabTitle");var d=$("#menu-tabs");if(f==="close"){d.tabs("close",b);return}if(f==="refresh"){refreshTab({tabTitle:b});return}var a=d.tabs("tabs");var e=[];$.each(a,function(){var h=$(this).panel("options");if(h.closable&&h.title!=b&&f==="Other"){e.push(h.title)}else{if(h.closable&&f==="All"){e.push(h.title)}}});for(var c=0;c<e.length;c++){d.tabs("close",e[c])}}function addAccordions(f){var d=null;var l=["???-??????","???-??????","???-??????","????-??????","???-??????","??????-??????","??????-??????","??????-??????"];var g="parameter";if(f==0){d=getMenu("acq");g="acquisition"}if(f==1){d=getMenu("cat");g="catalogue"}if(f==2){d=getMenu("hld");g="collection"}if(f==3){d=getMenu("cir");g="circulation"}if(f==4){d=getMenu("per");g="periodical"}if(f==5){d=getMenu("par");g="parameter"}if(f==6){d=getMenu("sys");g="application"}if(f==7){d=getSysDataByBookMark()}$(".west").panel("setTitle",l[f]);clearFirstMenu();var k;if(d.length>0){k=d[0].title;for(var e=0;e<d.length;e++){var h=d[e].submenus;var b='<ul class="accordions-ul">';for(var c=0;c<h.length;c++){var a=getLiknUrl(g,h[c].url);b+="<li onclick=\"addTab('"+h[c].name+"','"+a+"','"+h[c].iconcls+"','"+h[c].id+"')\">";b+='<a><i class="fa fa-'+h[c].iconcls+'"></i>  ';b+=h[c].name;b+="</a>";b+="</li>"}b+="</ul>";firstMenu.accordion("add",{title:d[e].title,iconCls:d[e].iconcls,content:b})}firstMenu.accordion("select",k)}$(".accordions-ul li").each(function(i){$(this).click(function(){$(".accordions-ul li.tabin").removeClass("tabin");$(this).addClass("tabin")})})}function getLiknUrl(c,b){var a=b;if(a.indexOf("bookmarkfalg/")>-1){a=a.replace(new RegExp("bookmarkfalg/","g"),"")}else{if(a.indexOf("exportlist.jsp")>-1||a.indexOf("exportlabellist.jsp")>-1||a.indexOf("exp_")>-1){a="export/"+a}else{if(a.indexOf("acq_ordermenu.jsp")>-1||a.indexOf("acq_orderimport.jsp")>-1||a.indexOf("acq_recommend.jsp")>-1||a.indexOf("acq_orderhandler.jsp")>-1||a.indexOf("acq_ordermenuxlsimport.jsp")>-1||a.indexOf("acq_orderxlsimport.jsp")>-1){a="acquisition/"+a}else{if(a.indexOf("statistics.jsp")>-1||a.indexOf("sta_")>-1){a="statistics/"+a}else{if(a.indexOf("systemlog.jsp")>-1||a.indexOf("systemlogcount.jsp")>-1){a="public/"+a}else{if(a.indexOf("com_bibliography.jsp")>-1||a.indexOf("bibliography.jsp")>-1||a.indexOf("com_cataholdings.jsp")>-1||a.indexOf("exportlabellist.jsp")>-1||a.indexOf("bib_import_data.jsp")>-1||a.indexOf("bib_export_data.jsp")>-1||a.indexOf("bib_data_batchrecord.jsp")>-1||a.indexOf("bib_data_z3950batchrecord.jsp")>-1||a.indexOf("bib_data_integritycheck.jsp")>-1||a.indexOf("bib_data_checkhandle.jsp")>-1||a.indexOf("title_number.jsp")>-1||a.indexOf("rebulidbib.jsp")>-1||a.indexOf("bib_xls_import_data.jsp")>-1){a="catalogue/"+a}else{if(c=="circulation"&&(a.indexOf("holdings.jsp")>-1||a.indexOf("hld_import_data.jsp")>-1)){a="collection/"+a}else{if(c=="periodical"&&(a.indexOf("hld_import_data.jsp")>-1)){a="collection/"+a}else{a=c+"/"+a}}}}}}}}return a}function getMenu(a){var b=mystorage.get("menu");if(!b||!b[a]){return[]}return b[a]}function controlSidebar(){$(".control-sidebar").toggle(300);setValue("oldpassword","");setValue("newpassword","");setValue("okpassword","")}function loingOut(){var a=base_path+"par/operator/logout.do";var b={};$.post(a,b,function(d){if(d.status=="0"){localStorage.removeItem("loginAccount");localStorage.removeItem("loginPassword");var c=base_path+"page/login.jsp";window.location=c}else{openMessageDlg(d.message)}},"json")}function modifyPwd(){var b=getValue("oldpassword");if(b.length==0){return openMessageDlg("???????????")}var c=getValue("newpassword");var e=getValue("okpassword");if(c.length==0||e.length==0){return openMessageDlg("????????????????????")}if(e!=c){return openMessageDlg("???????????????????")}var a=base_path+"par/operator/updatepwd.do";var d={};d.password=c;d.oldpassword=b;$.post(a,d,function(f){if(f.status=="0"){openConfirmDlg("????????????",null,modifyPwdOk,modifyCancle)}else{openMessageDlg(f.message)}},"json")}function modifyPwdOk(){controlSidebar();loingOut()}function modifyCancle(){controlSidebar()}function clearFirstMenu(){var b=firstMenu.accordion("panels");for(var a=0;a<b.length;a++){firstMenu.accordion("remove",a)}if(b.length!=0){clearFirstMenu()}}function handleFullScreen(){if(isFullScreen){exitFull();isFullScreen=false}else{requestFullScreen();isFullScreen=true}}function requestFullScreen(){var a=document.documentElement;if(a.requestFullscreen){a.requestFullscreen()}else{if(a.mozRequestFullScreen){a.mozRequestFullScreen()}else{if(a.webkitRequestFullScreen){a.webkitRequestFullScreen()}else{alert("???????????????")}}}}function exitFull(){var b=document.exitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen||document.webkitExitFullscreen;if(b){b.call(document)}else{if(typeof window.ActiveXObject!=="undefined"){var a=new ActiveXObject("WScript.Shell");if(a!==null){a.SendKeys("{F11}")}}}};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de