(function($j){$j.positionFixed=function(el){$j(el).each(function(){new fixed(this)});return el;};$j.fn.positionFixed=function(){return $j.positionFixed(this)} var fixed=$j.positionFixed.impl=function(el){var o=this;o.sts={target:$j(el).css('position','fixed'),container:$j(window)} o.sts.currentCss={top:o.sts.target.css('top'),right:o.sts.target.css('right'),bottom:o.sts.target.css('bottom'),left:o.sts.target.css('left')} if(!o.ie6)return;o.bindEvent();} $j.extend(fixed.prototype,{ie6:false,bindEvent:function(){var o=this;o.sts.target.css('position','absolute') o.overRelative().initBasePos();o.sts.target.css(o.sts.basePos) o.sts.container.scroll(o.scrollEvent()).resize(o.resizeEvent());o.setPos();},overRelative:function(){var o=this;var relative=o.sts.target.parents().filter(function(){if($j(this).css('position')=='relative')return this;}) if(relative.size()>0)relative.after(o.sts.target) return o;},initBasePos:function(){var o=this;o.sts.basePos={top:o.sts.target.offset().top-(o.sts.currentCss.top=='auto'?o.sts.container.scrollTop():0),left:o.sts.target.offset().left-(o.sts.currentCss.left=='auto'?o.sts.container.scrollLeft():0)} return o;},setPos:function(){var o=this;o.sts.target.css({top:o.sts.container.scrollTop()+o.sts.basePos.top,left:o.sts.container.scrollLeft()+o.sts.basePos.left})},scrollEvent:function(){var o=this;return function(){o.setPos();}},resizeEvent:function(){var o=this;return function(){setTimeout(function(){o.sts.target.css(o.sts.currentCss) o.initBasePos();o.setPos()},1)}}})})(jQuery);(function($){$.fn.popWin=function(options){var def={PopSelector:"",CloseSelector:"",slideTime:600};var options=$.extend(def,options); var noie6=!(false&&!$.support.style); var PopSelector=options.PopSelector,CloseSelector=options.CloseSelector,slideTime=options.slideTime; if(noie6){$(PopSelector).slideDown(slideTime)} else{$(PopSelector).fadeIn(slideTime);var thisPop=$(PopSelector);jQuery(function($j){$j(thisPop).positionFixed()})} if(noie6){$(CloseSelector).click(function(){$(PopSelector).slideUp(slideTime);});} else{$(CloseSelector).click(function(){$(PopSelector).fadeOut(slideTime);});}}})(jQuery); var basePath=contextPath; function changeBoatTab(n,m){ for(var i=0;i'; } popBody += ''; for(var i in listEntity){ popBody += ''; for(var j=0;j'; } popBody += ''; } var page = data.attrs.page; popBody += "" + ""; popBody += '' } else { popBody = data.attrs.Html; } document.getElementById('popTitle').innerHTML=data.attrs.Title; document.getElementById('popHtml').innerHTML=popBody; $.fn.popWin({ PopSelector:".popupRightD", //弹出的窗体 CloseSelector:".popupRightD .close", //关闭窗体的触发开关 lideTime:600 //窗体出场入场动画的时间 }); pageinfo(id,action); } else { $.alert({ title : '提示', content : data.message, confirm : function() { } }); } } }); } function pageinfo(id,action){ $("#pagefirst").click(function() { if ($("#currentpage").val() == 1) { $.alert({ title : '提示', content : '已到第一页', confirm : function() { } }); return; } else { $("#currentpage").val(1); showMesg(id,action); } }); $("#pageprev").click(function() { if ($("#currentpage").val() == 1) { $.alert({ title : '提示', content : '已到第一页', confirm : function() { } }); return; } else { if($("#currentpage").val()!=''){ $("#currentpage").val(parseInt($("#currentpage").val()) - 1); showMesg(id,action); }else{ $("#currentpage").val(1); showMesg(id,action); } } }); $("#pagenext").click(function() { if(parseInt($("#pagetotal").val())<=1){ $.alert({ title : '提示', content : '已到最后一页', confirm : function() { } }); return; } if ($("#currentpage").val() == $("#pagetotal").val()) { $.alert({ title : '提示', content : '已到最后一页', confirm : function() { } }); return; } else { if($("#currentpage").val()!=''){ $("#currentpage").val(parseInt($("#currentpage").val()) + 1); showMesg(id,action); }else{ $("#currentpage").val(1); showMesg(id,action); } } }); $("#pagelast").click(function() { if(parseInt($("#pagetotal").val())<=1){ $.alert({ title : '提示', content : '已到最后一页', confirm : function() { } }); return; } if ($("#currentpage").val() == $("#pagetotal").val()) { $.alert({ title : '提示', content : '已到最后一页', confirm : function() { } }); return; } else { $("#currentpage").val($("#pagetotal").val()); showMesg(id,action); } }); $("#refresh").click(function() { if($("#currentpage").val()==''){ $("#currentpage").val(1); showMesg(id,action); }else{ showMesg(id,action); } }); $("#pagerows").change(function() { showMesg(id,action); }); $("#currentpage").keydown( function(event, p) { if (event.keyCode == 13) { if ($.isNumeric($("#currentpage").val()) && (parseInt($("#currentpage").val()) >= 1) && (parseInt($("#currentpage").val()) <= parseInt($("#pagetotal").val()))) { } else { $.alert({ title: '提示', content: '请输入有效数字' }); return false; } showMesg(id,action); } }); } function showall() { $('div').css("display", "block"); } function hideexcel(that) { $(that).parent().parent().css("display", "none"); } function changeBoatTab(n, m) { for ( var i = 0; i < m; i++) { var boat_menu = document.getElementById("boat_menu_" + i); var boat_main = document.getElementById("boat_main_" + i); var boat_menu_img = boat_menu.getElementsByTagName("img"); boat_menu.className = i == n ? "boat_hover" : ""; for ( var j = 0; j < boat_menu_img.length; j++) { boat_menu_img[j].src = i == n ?contextPath+'/theme/images/tab_hover.png' : contextPath+'/theme/images/tab.png'; } boat_main.style.display = i == n ? "block" : "none"; } } function changePopTab(n, m) { for ( var i = 0; i < m; i++) { var pop_menu = document.getElementById("pop_menu_" + i); var pop_main = document.getElementById("pop_main_" + i); var pop_menu_img = document.getElementById("pop_ul") .getElementsByTagName("img"); pop_menu.className = i == n ? "pop_hover" : ""; pop_menu_img[i].src = i == n ? "img/pop_tab_hover.png" : "img/pop_tab.png"; // // alert(pop_menu.style.zIndex); pop_main.style.display = i == n ? "block" : "none"; } } function move_img(that) { var y_axis = parseInt($(that).css('height')) / 2; if ($(that).css('bottom') == "0px") $(that).css('bottom', y_axis + "px"); else $(that).css('bottom', '0px'); }