!function(){var __modules__={};function require(id){var mod=__modules__[id];var exports="exports";if(typeof mod==="object"){return mod}if(!mod[exports]){mod[exports]={};mod[exports]=mod.call(mod[exports],require,mod[exports],mod)||mod[exports]}return mod[exports]}function define(path,fn){__modules__[path]=fn}define("jquery",function(){return jQuery});define("popup",function(require){var $=require("jquery");var _count=0;var _isIE6=!("minWidth"in $("html")[0].style);var _isFixed=!_isIE6;function Popup(){this.destroyed=false;this.__popup=$("
").css({display:"none",position:"absolute",outline:0}).attr("tabindex","-1").html(this.innerHTML).appendTo("body");this.__backdrop=this.__mask=$("").css({opacity:.7,background:"#000"});this.node=this.__popup[0];this.backdrop=this.__backdrop[0];_count++}$.extend(Popup.prototype,{node:null,backdrop:null,fixed:true,destroyed:true,open:false,returnValue:"",autofocus:true,align:"bottom left",innerHTML:"",className:"ui-popup",show:function(anchor){if(this.destroyed){return this}var that=this;var popup=this.__popup;var backdrop=this.__backdrop;this.__activeElement=this.__getActive();this.open=true;this.follow=anchor||this.follow;if(!this.__ready){popup.addClass(this.className).attr("role",this.modal?"alertdialog":"dialog").css("position",this.fixed?"fixed":"absolute");if(!_isIE6){$(window).on("resize",$.proxy(this.reset,this))}if(this.modal){var backdropCss={position:"fixed",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",userSelect:"none",zIndex:this.zIndex||Popup.zIndex};popup.addClass(this.className+"-modal");if(!_isFixed){$.extend(backdropCss,{position:"absolute",width:$(window).width()+"px",height:$(document).height()+"px"})}backdrop.css(backdropCss).attr({tabindex:"0"}).on("focus",$.proxy(this.focus,this));this.__mask=backdrop.clone(true).attr("style","").insertAfter(popup);backdrop.addClass(this.className+"-backdrop").insertBefore(popup);this.__ready=true}if(!popup.html()){popup.html(this.innerHTML)}}popup.addClass(this.className+"-show").show();backdrop.show();this.reset().focus();this.__dispatchEvent("show");return this},showModal:function(){this.modal=true;return this.show.apply(this,arguments)},close:function(result){if(!this.destroyed&&this.open){if(result!==undefined){this.returnValue=result}this.__popup.hide().removeClass(this.className+"-show");this.__backdrop.hide();this.open=false;this.blur();this.__dispatchEvent("close")}return this},remove:function(){if(this.destroyed){return this}this.__dispatchEvent("beforeremove");if(Popup.current===this){Popup.current=null}this.__popup.remove();this.__backdrop.remove();this.__mask.remove();if(!_isIE6){$(window).off("resize",this.reset)}this.__dispatchEvent("remove");for(var i in this){delete this[i]}return this},reset:function(){var elem=this.follow;var bottom=this.options.bottom;if(elem){this.__follow(elem)}else if(bottom){this.__bottom()}else{this.__center()}this.__dispatchEvent("reset");return this},focus:function(){var node=this.node;var popup=this.__popup;var current=Popup.current;var index=this.zIndex=Popup.zIndex++;if(current&¤t!==this){current.blur(false)}if(!$.contains(node,this.__getActive())){var autofocus=popup.find("[autofocus]")[0];if(!this._autofocus&&autofocus){this._autofocus=true}else{autofocus=node}this.__focus(autofocus)}popup.css("zIndex",index);Popup.current=this;popup.addClass(this.className+"-focus");this.__dispatchEvent("focus");return this},blur:function(){var activeElement=this.__activeElement;var isBlur=arguments[0];if(isBlur!==false){this.__focus(activeElement)}this._autofocus=false;this.__popup.removeClass(this.className+"-focus");this.__dispatchEvent("blur");return this},addEventListener:function(type,callback){this.__getEventListener(type).push(callback);return this},removeEventListener:function(type,callback){var listeners=this.__getEventListener(type);for(var i=0;i'+''+''+" | "+"
'+''+" | "+"
'+''+''+" | "+"
加载中,请稍候...
'}else{html=''+this.options.content+"
"}break;case"jsonload":if(this.options.content==""){html='数据载入中,请稍候...
'}else{html=''+this.options.content+"
"}break;case"tipsbox":var th=this;if(this.options.closeTime!=0){setTimeout(function(){artDialog.list[th.id].close().remove()},this.options.closeTime)}break}}$content.html(html)}return this.reset()},title:function(text){this._$("title").html(text);this._$("header")[text?"show":"hide"]();return this},width:function(value){this._$("content").css("width",value);return this.reset()},height:function(value){this._$("content").css("height",value);return this.reset()},button:function(args){args=args||[];var that=this;var html="";var number=0;this.callbacks={};if(typeof args==="string"){html=args;number++}else{$.each(args,function(i,val){var id=val.id=val.id||val.value;var style="";that.callbacks[id]=val.callback;if(val.display===false){style=' style="display:none"'}else{number++}html+="";that._$("button").on("click","[i-id="+id+"]",function(event){var $this=$(this);if(!$this.attr("disabled")){that._trigger(id)}event.preventDefault()})})}this._$("button").html(html);this._$("footer")[number?"show":"hide"]();return this},statusbar:function(html){this._$("statusbar").html(html)[html?"show":"hide"]();return this},_$:function(i){return this._popup.find("[i="+i+"]")},_trigger:function(id){var fn=this.callbacks[id];return typeof fn!=="function"||fn.call(this)!==false?this.close().remove():this}});artDialog.oncreate=$.noop;artDialog.getCurrent=function(){return Popup.current};artDialog.get=function(id){return id===undefined?artDialog.list:artDialog.list[id]};artDialog.list={};artDialog.defaults=defaults;return artDialog});define("drag",function(require){var $=require("jquery");var $window=$(window);var $document=$(document);var isTouch="createTouch"in document;var html=document.documentElement;var isIE6=!("minWidth"in html.style);var isLosecapture=!isIE6&&"onlosecapture"in html;var isSetCapture="setCapture"in html;var types={start:isTouch?"touchstart":"mousedown",over:isTouch?"touchmove":"mousemove",end:isTouch?"touchend":"mouseup"};var getEvent=isTouch?function(event){if(!event.touches){event=event.originalEvent.touches.item(0)}return event}:function(event){return event};var DragEvent=function(){this.start=$.proxy(this.start,this);this.over=$.proxy(this.over,this);this.end=$.proxy(this.end,this);this.onstart=this.onover=this.onend=$.noop};DragEvent.types=types;DragEvent.prototype={start:function(event){event=this.startFix(event);$document.on(types.over,this.over).on(types.end,this.end);this.onstart(event);return false},over:function(event){event=this.overFix(event);this.onover(event);return false},end:function(event){event=this.endFix(event);$document.off(types.over,this.over).off(types.end,this.end);this.onend(event);return false},startFix:function(event){event=getEvent(event);this.target=$(event.target);this.selectstart=function(){return false};$document.on("selectstart",this.selectstart).on("dblclick",this.end);if(isLosecapture){this.target.on("losecapture",this.end)}else{$window.on("blur",this.end)}if(isSetCapture){this.target[0].setCapture()}return event},overFix:function(event){event=getEvent(event);return event},endFix:function(event){event=getEvent(event);$document.off("selectstart",this.selectstart).off("dblclick",this.end);if(isLosecapture){this.target.off("losecapture",this.end)}else{$window.off("blur",this.end)}if(isSetCapture){this.target[0].releaseCapture()}return event}};DragEvent.create=function(elem,event){var $elem=$(elem);var dragEvent=new DragEvent();var startType=DragEvent.types.start;var noop=function(){};var className=elem.className.replace(/^\s|\s.*/g,"")+"-drag-start";var minX;var minY;var maxX;var maxY;var api={onstart:noop,onover:noop,onend:noop,off:function(){$elem.off(startType,dragEvent.start)}};dragEvent.onstart=function(event){var isFixed=$elem.css("position")==="fixed";var dl=$document.scrollLeft();var dt=$document.scrollTop();var w=$elem.width();var h=$elem.height();minX=0;minY=0;maxX=isFixed?$window.width()-w+minX:$document.width()-w;maxY=isFixed?$window.height()-h+minY:$document.height()-h;var offset=$elem.offset();var left=this.startLeft=isFixed?offset.left-dl:offset.left;var top=this.startTop=isFixed?offset.top-dt:offset.top;this.clientX=event.clientX;this.clientY=event.clientY;$elem.addClass(className);api.onstart.call(elem,event,left,top)};dragEvent.onover=function(event){var left=event.clientX-this.clientX+this.startLeft;var top=event.clientY-this.clientY+this.startTop;var style=$elem[0].style;left=Math.max(minX,Math.min(maxX,left));top=Math.max(minY,Math.min(maxY,top));style.left=left+"px";style.top=top+"px";api.onover.call(elem,event,left,top)};dragEvent.onend=function(event){var position=$elem.position();var left=position.left;var top=position.top;$elem.removeClass(className);api.onend.call(elem,event,left,top)};dragEvent.off=function(){$elem.off(startType,dragEvent.start)};if(event){dragEvent.start(event)}else{$elem.on(startType,dragEvent.start)}return api};return DragEvent});define("dialog-plus",function(require){var $=require("jquery");var dialog=require("dialog");var drag=require("drag");dialog.oncreate=function(api){var options=api.options;var originalOptions=options.original;var url=options.url;var oniframeload=options.oniframeload;var $iframe;if(url){this.padding=options.padding=0;$iframe=$("");$iframe.attr({src:url,name:api.id,width:"100%",height:"100%",allowtransparency:"yes",frameborder:"no",scrolling:"no"}).on("load",function(){var test;try{test=$iframe[0].contentWindow.frameElement}catch(e){}if(test){if(!options.width){api.width($iframe.contents().width())}if(!options.height){api.height($iframe.contents().height())}}if(oniframeload){oniframeload.call(api)}});api.addEventListener("beforeremove",function(){$iframe.attr("src","about:blank").remove()},false);api.content($iframe[0]);api.iframeNode=$iframe[0]}if(!(originalOptions instanceof Object)){var un=function(){api.close().remove()};for(var i=0;i