index.min.js 111 KB

1234
  1. function move(e,t,i){clearInterval(e.timer),e.timer=setInterval(function(){var n=!0;for(var l in t){var r=null;r="opacity"==l?100*getStyle(e,l):parseInt(getStyle(e,l))||0;var a=t[l],o=.2*(a-r);o=o>0?Math.ceil(o):Math.floor(o),r!=a&&("opacity"==l?(e.style.filter="alpha(opacity = "+(r+o)+")",e.style[l]=(r+o)/100):e.style[l]=r+o+"px",n=!1)}n&&(clearInterval(e.timer),i&&i.call(e))},100/3)}function getStyle(e,t){return e.currentStyle?e.currentStyle[t]:getComputedStyle(e,null)[t]}Namespace.register("U.MD.UI.slider"),U.MD.UI.slider=function(e,t,i){function n(){h=++h%f,v++,v%=y,h==f-1?move(D,{left:-p*h},function(){h=1,this.style.left=-h*p+"px"}):move(D,{left:-p*h}),l(v),c&&c(v+1)}function l(e){for(var t=0;t<y;t++)g[t].className="";g[e].className="U_MD_UI_slider_On"}var r=i.speed,a=i.arrow,o=i.dot,c=i.moveFun,s=$$("ul",{className:"U_MD_UI_slider_ImgList"},e);for(t.unshift(t[t.length-1]),t.push(t[1]),E=0;E<t.length;E++){var U=$$("li",{className:""},s);$$("img",{className:"",src:t[E]},U)}var d=$$("ul",{className:"U_MD_UI_slider_Btn"},e),_=($$("li",{className:"U_MD_UI_slider_Left",innerHTML:"<"},d),$$("li",{className:"U_MD_UI_slider_Right",innerHTML:">"},d),$$("ul",{className:"U_MD_UI_slider_Point"},e));for(E=0;E<t.length-3;E++)0==E&&$$("li",{className:"U_MD_UI_slider_On"},_)[0],$$("li",{className:""},_)[E];var p=e.offsetWidth,u=e.offsetHeight,D=e.getElementsByClassName("U_MD_UI_slider_ImgList")[0],I=(U=D.getElementsByTagName("li"),document.getElementsByClassName("U_MD_UI_slider_Btn")[0]),M=e.getElementsByClassName("U_MD_UI_slider_Point")[0],m=I.getElementsByTagName("li"),f=D.getElementsByTagName("li").length,h=1,g=M.getElementsByTagName("li"),y=g.length,v=0,x=null;M.style.display=o?"block":"none";for(var b=D.getElementsByTagName("li"),E=0;E<b.length;E++)b[E].style.width=p+"px",b[E].style.height=u+"px";D.style.width=p*t.length+"px",D.style.left=-p+"px",I.style.width=p+"px",e.onmouseover=function(){I.style.display=a?"block":"none",clearInterval(x)},e.onmouseout=function(){I.style.display="none",x=setInterval(n,r)};var C=new Date;m[0].onclick=function(){var e=new Date;e-C>500&&(h--,v--,0==h?move(D,{left:-p*h},function(){h=f-2,this.style.left=-h*p+"px"}):move(D,{left:-p*h}),v=-1==v?y-1:v,l(v),c&&c(v+1)),C=new Date},m[1].onclick=function(){var e=new Date;e-C>500&&(h++,v++,v%=y,h==f-1?move(D,{left:-p*h},function(){h=1,this.style.left=-h*p+"px"}):move(D,{left:-p*h}),l(v),c&&c(v+1)),C=new Date},x=setInterval(n,r),0==v&&console.log(v+1);for(E=0;E<y;E++)g[E]._listindex=E,g[E].onclick=function(){v=this._listindex,h=v+1,move(D,{left:-p*h}),l(v)}},Namespace.register("U.MD.UI.calendar"),U.MD.UI.Calendar=U.MD.UI.calendar=function(e,t,i){e&&(U.MD.UI.calendar.datetimeformat="boolean"!=typeof i||0!=i||i,U.MD.UI.calendar.create(e,t))},U.MD.UI.calendar.NOW=new Date,U.MD.UI.calendar.CURRENTYEAR=U.MD.UI.calendar.NOW.getFullYear(),U.MD.UI.calendar.CURRENTMONTH=U.MD.UI.calendar.NOW.getMonth(),U.MD.UI.calendar.CURRENTDAY=U.MD.UI.calendar.NOW.getDate(),U.MD.UI.calendar.year=U.MD.UI.calendar.CURRENTYEAR,U.MD.UI.calendar.month=U.MD.UI.calendar.CURRENTMONTH,U.MD.UI.calendar.day=U.MD.UI.calendar.CURRENTDAY,U.MD.UI.calendar.hour="00",U.MD.UI.calendar.minute="00",U.MD.UI.calendar.second="00",U.MD.UI.calendar.datetimeformat=!0,U.MD.UI.calendar.fouseinp=null,U.MD.UI.calendar.board=null,U.MD.UI.calendar.tit=null,U.MD.UI.calendar.mark=1,U.MD.UI.calendar.template=['<div class="U_MD_UI_calendar_features"><div class="U_MD_UI_calendar_closeBtn" id="U_MD_UI_calendar_closeBtn">关闭</div><div class="U_MD_UI_calendar_features_a"><div class="U_MD_UI_calendar_prev U_MD_UI_calendar_btn" id="prevDate"></div><div class="U_MD_UI_calendar_tit" id="calendar_tit"></div><input type="text" id="calendar_tit_btn" style="display: none;"><div class="U_MD_UI_calendar_next U_MD_UI_calendar_btn" id="nextDate"></div></div><i></i></div>','<div id="calendar_day"><ul class="U_MD_UI_calendar_week"><li>日</li><li>一</li><li>二</li><li>三</li><li>四</li><li>五</li><li>六</li></ul><ul class="U_MD_UI_calendar_c" id="calendar_week_c"></ul></div>','<div class="U_MD_UI_calendar_month" id="calendar_month" style="display: none"><ul class="U_MD_UI_calendar_month_c"><li><span>1月</span></li><li><span>2月</span></li><li><span>3月</span></li><li><span>4月</span></li><li><span>5月</span></li><li><span>6月</span></li><li><span>7月</span></li><li><span>8月</span></li><li><span>9月</span></li><li><span>10月</span></li><li><span>11月</span></li><li><span>12月</span></li></ul></div>','<div id="calendar_year" class="U_MD_UI_calendar_month" style="display: none"><ul class="U_MD_UI_calendar_month_c"><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li></ul></div>','<span id="U_MD_UI_calendar_timeText" class="U_MD_UI_calendar_timeText">选择时间</span><div class="U_MD_UI_calendar_timeBox"><div id="U_MD_UI_calendar_clearText" class="U_MD_UI_calendar_timeBtn">清空</div><div id="U_MD_UI_calendar_nowTime" class="U_MD_UI_calendar_timeBtn">现在</div><div id="U_MD_UI_calendar_okBtn" class="U_MD_UI_calendar_timeBtn">确定</div></div>','<div id="calendar_timeChoose" class="U_MD_UI_calendar_timeChoose" style="display: none"></div>'],U.MD.UI.calendar.create=function(e,t){if(e!=U.MD.UI.calendar.fouseinp||"block"!=U.MD.UI.calendar.board.style.display){t&&U.MD.UI.calendar.board&&(U.MD.UI.calendar.board.parentNode.removeChild(U.MD.UI.calendar.board),U.MD.UI.calendar.board=null);var i=document.documentElement.scrollTop||document.body.scrollTop,n=document.documentElement.scrollLeft||document.body.scrollLeft,l=[Math.abs(e.getBoundingClientRect().left)+n,Math.abs(e.getBoundingClientRect().top)+i];U.MD.UI.calendar.fouseinp=e,U.MD.UI.calendar.board?U.MD.UI.calendar.resetData(l):U.MD.UI.calendar.showBoard(e,l,t),U.MD.UI.calendar.showDay()}},U.MD.UI.calendar.toggleChooseText=function(e){var t=U.selectEl(".U_MD_UI_calendar_c_a")[0].children,i=t.length;if("返回日期"==e.innerText)return U.MD.UI.calendar.changeDisplay(_lastTemplate,t[i-1]),e.innerText="选择时间",void U.selectEl(e).removeClass("U_MD_UI_calendar_timeTextClick");for(var n=0;n<i-1;n++)"none"!=t[n].style.display&&(t[n].style.display="none",_lastTemplate=t[n]);t[i-1].style.display="block",e.innerText="返回日期",U.selectEl(e).addClass("U_MD_UI_calendar_timeTextClick")},U.MD.UI.calendar.resetData=function(e){U.MD.UI.calendar.board.style.display="block",U.MD.UI.calendar.mark=1,U.selectEl("#calendar_day")[0].style.display="block",U.selectEl("#calendar_month")[0].style.display="none",U.selectEl("#calendar_year")[0].style.display="none",U.MD.UI.calendar.board.style.left=e[0]+"px",U.MD.UI.calendar.board.style.top=e[1]+U.MD.UI.calendar.fouseinp.clientHeight+10+"px",U.MD.UI.calendar.year=U.MD.UI.calendar.CURRENTYEAR,U.MD.UI.calendar.month=U.MD.UI.calendar.CURRENTMONTH,U.MD.UI.calendar.ChooseDefault(!0)},U.MD.UI.calendar.createChooseTime=function(e){for(var t=[["时","分","秒"],[24,60,60],["hour","minute","second"]],i=$$("div",{id:"calendar_time",className:"U_MD_UI_calendar_time",innerHTML:U.MD.UI.calendar.template[4]},U.MD.UI.calendar.board),n=0;n<t[0].length;n++){var l=$$("div",{className:"U_MD_UI_calendar_timeRow"},e);$$("span",{className:"U_MD_UI_calendar_timeRowText",innerText:t[0][n]},l);for(var r=$$("div",{className:"U_MD_UI_calendar_timeRowCon"},l),a=$$("ul",{className:"U_MD_UI_calendar_timeRowUl",name:t[2][n]},r),o=0;o<t[1][n];o++){var c=1==o.toString().length?"0"+o:o;$$("li",{innerText:c,onclick:function(){var e=this.parentNode,t=e.querySelector(".U_MD_UI_calendar_timeRowActive");switch(U.selectEl(t).removeClass("U_MD_UI_calendar_timeRowActive"),U.selectEl(this).addClass("U_MD_UI_calendar_timeRowActive"),e.name){case"hour":U.MD.UI.calendar.hour=this.innerText;break;case"minute":U.MD.UI.calendar.minute=this.innerText;break;case"second":U.MD.UI.calendar.second=this.innerText}}},a)}}U.MD.UI.calendar.datetimeformat||(i.style.display="none"),U.selectEl("#U_MD_UI_calendar_timeText")[0].onclick=function(){U.MD.UI.calendar.toggleChooseText(this)},U.selectEl("#U_MD_UI_calendar_clearText")[0].onclick=function(){U.MD.UI.calendar.fouseinp.value?U.MD.UI.calendar.fouseinp.value="":U.MD.UI.calendar.fouseinp.innerText="",U.MD.UI.calendar.ChooseDefault(!0),U.MD.UI.calendar.board.style.display="none"},U.selectEl("#U_MD_UI_calendar_nowTime")[0].onclick=function(){U.MD.UI.calendar.outPutDate(!0)},U.selectEl("#U_MD_UI_calendar_okBtn")[0].onclick=function(){U.MD.UI.calendar.outPutDate(!1)}},U.MD.UI.calendar.showBoard=function(e,t,i){var n=U.MD.UI.calendar.template,l=i||document.body,r=n[1]+n[2]+n[3]+n[5];U.MD.UI.calendar.board=i?$$("div",{className:"U_MD_UI_calendar_bigboard"},i):$$("div",{className:"U_MD_UI_calendar_bigboard",style:{left:t[0]+"px",top:t[1]+e.clientHeight+10+"px"}},l),U.MD.UI.calendar.board.innerHTML=n[0],_dayC=$$("div",{className:"U_MD_UI_calendar_c_a",innerHTML:r},U.MD.UI.calendar.board),U.MD.UI.calendar.tit=U.selectEl("#calendar_tit")[0],_mc=U.selectEl("#calendar_month > ul > li"),_titInp=U.selectEl("#calendar_tit_btn")[0],_timer=null,U.MD.UI.calendar.createChooseTime($("#calendar_timeChoose")[0]),U.MD.UI.calendar.tit.onclick=function(){clearTimeout(_timer),1==U.MD.UI.calendar.mark?(U.MD.UI.calendar.tit.innerText=U.MD.UI.calendar.year,U.MD.UI.calendar.changeDisplay($("#calendar_month")[0],U.selectEl("#calendar_day")[0]),U.MD.UI.calendar.mark=2,U.MD.UI.calendar.ChooseDefault()):2==U.MD.UI.calendar.mark&&(_timer=setTimeout(function(){U.MD.UI.calendar.changeDisplay($("#calendar_year")[0],U.selectEl("#calendar_month")[0]),U.MD.UI.calendar.dateTenYear(),U.MD.UI.calendar.mark=3,U.MD.UI.calendar.ChooseDefault()},250))},U.MD.UI.calendar.tit.ondblclick=function(){clearTimeout(_timer),2===U.MD.UI.calendar.mark&&(_obj=U.MD.UI.calendar.changeDisplay(_titInp,this,"inline-block"),_obj[0].value=this.innerText,_obj[0].focus())},_titInp.onkeydown=function(e){switch(e.keyCode){case 13:var t=U.MD.UI.calendar.changeDisplay(U.MD.UI.calendar.tit,this,"inline-block");t[0].innerText=U.MD.UI.calendar.year=isNaN(parseInt(this.value))?U.MD.UI.calendar.CURRENTYEAR:parseInt(this.value)}},_titInp.onblur=function(){var e=U.MD.UI.calendar.changeDisplay(U.MD.UI.calendar.tit,this,"inline-block");e[0].innerText=U.MD.UI.calendar.year=isNaN(parseInt(this.value))?U.MD.UI.calendar.CURRENTYEAR:parseInt(this.value)},U.selectEl("#prevDate")[0].onclick=function(){1==U.MD.UI.calendar.mark?_lessNum=-1:2==U.MD.UI.calendar.mark?_lessNum=-12:3==U.MD.UI.calendar.mark&&(_lessNum=-120),U.MD.UI.calendar.fullDate(_lessNum,!1)},U.selectEl("#nextDate")[0].onclick=function(){1==U.MD.UI.calendar.mark?_addNum=1:2==U.MD.UI.calendar.mark?_addNum=12:3==U.MD.UI.calendar.mark&&(_addNum=120),U.MD.UI.calendar.fullDate(_addNum,!0)};for(var a=0;a<_mc.length;a++)_mc[a].onclick=function(){U.MD.UI.calendar.changeDisplay($("#calendar_day")[0],U.selectEl("#calendar_month")[0]),U.MD.UI.calendar.month=parseInt(this.innerText)-1,U.MD.UI.calendar.showDay(),U.MD.UI.calendar.mark=1};U.selectEl("#U_MD_UI_calendar_closeBtn")[0].onclick=function(){U.UF.EV.stopBubble(),U.MD.UI.calendar.board.style.display="none"}},U.MD.UI.calendar.showDay=function(){_monthFristDay=new Date(U.MD.UI.calendar.year,U.MD.UI.calendar.month,1).getDay(),_lastMonthDay=new Date(U.MD.UI.calendar.year,U.MD.UI.calendar.month,0).getDate(),_fullDay=new Date(U.MD.UI.calendar.year,U.MD.UI.calendar.month+1,0).getDate(),_totalDay=(_t=_monthFristDay+_fullDay)%7==0?_t:_t+(7-_t%7),_dayC=U.selectEl("#calendar_week_c")[0],_dayC.innerHTML="";for(var e=0;e<_totalDay;e++)if(_li=$$("li",{},_dayC),e<_monthFristDay)$$("span",{className:"U_MD_UI_calendar_unavailable",innerText:_lastMonthDay-_monthFristDay+e+1},_li);else if(e<_fullDay+_monthFristDay){var t=e-_monthFristDay+1,i=new Date(U.MD.UI.calendar.year,U.MD.UI.calendar.month,t).getDay(),n=U.MD.UI.calendar.NOW.getDate()===t&&U.MD.UI.calendar.CURRENTMONTH===U.MD.UI.calendar.month&&U.MD.UI.calendar.CURRENTYEAR===U.MD.UI.calendar.year;_dayV=t,6===i||0===i?n?$$("span",{className:"U_MD_UI_calendar_day U_MD_UI_calendar_today U_MD_UI_calendar_weekend",innerText:t,onclick:function(){U.MD.UI.calendar.day=this.innerText,U.MD.UI.calendar.outPutDate()}},_li):$$("span",{className:"U_MD_UI_calendar_day U_MD_UI_calendar_weekend",innerText:t,onclick:function(){U.MD.UI.calendar.day=this.innerText,U.MD.UI.calendar.outPutDate()}},_li):n?$$("span",{className:"U_MD_UI_calendar_day U_MD_UI_calendar_today",innerText:t,onclick:function(){U.MD.UI.calendar.day=this.innerText,U.MD.UI.calendar.outPutDate()}},_li):$$("span",{className:"U_MD_UI_calendar_day",innerText:t,onclick:function(){U.MD.UI.calendar.day=this.innerText,U.MD.UI.calendar.outPutDate()}},_li)}else $$("span",{className:"U_MD_UI_calendar_unavailable",innerText:e-(_fullDay+_monthFristDay)+1},_li);U.MD.UI.calendar.tit.innerText=U.MD.UI.calendar.year+"-"+(U.MD.UI.calendar.month+1)+"月"},U.MD.UI.calendar.fullDate=function(e,t){var i=(_n=Math.abs(e)/12)>=1?_n>>>0:0,n=Math.abs(e)%12;!t&&(n=-n),!t&&(i=-i),U.MD.UI.calendar.month+=n,U.MD.UI.calendar.year+=i,t?U.MD.UI.calendar.month>11&&(U.MD.UI.calendar.month=0,U.MD.UI.calendar.year++):U.MD.UI.calendar.month<0&&(U.MD.UI.calendar.month=11,U.MD.UI.calendar.year--),1==U.MD.UI.calendar.mark&&U.MD.UI.calendar.showDay(),2==U.MD.UI.calendar.mark&&(U.MD.UI.calendar.tit.innerText=U.MD.UI.calendar.year),3==U.MD.UI.calendar.mark&&U.MD.UI.calendar.dateTenYear()},U.MD.UI.calendar.formartDate=function(e,t){var i,n,l,r,a,o;i=e||"-",n=t?U.MD.UI.calendar.CURRENTYEAR:U.MD.UI.calendar.year,a=t?U.MD.UI.calendar.CURRENTMONTH+1:U.MD.UI.calendar.month+1,l=t?U.MD.UI.calendar.CURRENTDAY:U.MD.UI.calendar.day,a=a.toString()[1]?a:"0"+a,l=l.toString()[1]?l:"0"+l;var c=n+i+a+i+l;if("boolean"==typeof U.MD.UI.calendar.datetimeformat&&U.MD.UI.calendar.datetimeformat){if(t){var s=new Date;U.MD.UI.calendar.hour=s.getHours(),U.MD.UI.calendar.minute=s.getMinutes(),U.MD.UI.calendar.second=s.getSeconds()}r=U.MD.UI.calendar.hour.toString()[1]?U.MD.UI.calendar.hour:"0"+U.MD.UI.calendar.hour,a=U.MD.UI.calendar.minute.toString()[1]?U.MD.UI.calendar.minute:"0"+U.MD.UI.calendar.minute,o=U.MD.UI.calendar.second.toString()[1]?U.MD.UI.calendar.second:"0"+U.MD.UI.calendar.second,c+=" "+r+":"+a+":"+o}return c},U.MD.UI.calendar.outPutDate=function(e){"INPUT"===U.MD.UI.calendar.fouseinp.tagName?U.MD.UI.calendar.fouseinp.value=U.MD.UI.calendar.formartDate("-",e):U.MD.UI.calendar.fouseinp.innerText=U.MD.UI.calendar.formartDate("-",e),U.MD.UI.calendar.CheckedDay&&U.MD.UI.calendar.CheckedDay(),U.MD.UI.calendar.board.style.display="none"},U.MD.UI.calendar.changeDisplay=function(e,t,i){return i=i||"block",e&&"object"==typeof e&&e.setAttribute("style","display:"+i),t&&"object"==typeof t&&t.setAttribute("style","display:none"),[e,t]},U.MD.UI.calendar.dateTenYear=function(){_yearArr=U.selectEl("#calendar_year > ul > li"),_startYear=U.MD.UI.calendar.year-U.MD.UI.calendar.year%10;for(var e=0;e<_yearArr.length;e++)_yearArr[e].onclick=function(){U.MD.UI.calendar.mark=2,U.MD.UI.calendar.year=parseInt(this.innerText),U.MD.UI.calendar.changeDisplay($("#calendar_month")[0],U.selectEl("#calendar_year")[0]),U.MD.UI.calendar.tit.innerText=this.innerText},_yearArr[e].innerHTML="",0==e||e==_yearArr.length-1?$$("span",{className:"U_MD_UI_calendar_unavailable",innerText:_startYear+e-1},_yearArr[e]):_startYear+e-1===U.MD.UI.calendar.CURRENTYEAR?$$("span",{style:{"background-color":"#eed1bc"},innerText:_startYear+e-1},_yearArr[e]):$$("span",{innerText:_startYear+e-1},_yearArr[e]);U.MD.UI.calendar.tit.innerText=(t=U.MD.UI.calendar.year-U.MD.UI.calendar.year%10)+"-"+(t+9)},U.MD.UI.calendar.ChooseDefault=function(e){U.MD.UI.calendar.datetimeformat?(e&&(U.MD.UI.calendar.hour="00",U.MD.UI.calendar.minute="00",U.MD.UI.calendar.second="00",U.selectEl(U.MD.UI.calendar.board).find(".U_MD_UI_calendar_timeRowActive").removeClass("U_MD_UI_calendar_timeRowActive"),!$("#U_MD_UI_calendar_timeText").length&&U.MD.UI.calendar.createChooseTime($("#calendar_timeChoose")[0])),U.selectEl("#calendar_time")[0].style.display="block",U.selectEl("#calendar_timeChoose")[0].style.display="none",U.selectEl("#U_MD_UI_calendar_timeText")[0].innerText="选择时间",U.selectEl("#U_MD_UI_calendar_timeText").removeClass("U_MD_UI_calendar_timeTextClick")):(U.selectEl("#calendar_time")[0].style.display="none",U.selectEl("#calendar_timeChoose")[0].style.display="none")},U.MD.UI.calendar.SetCallBack=function(e,t){if("function"!=typeof t||!"CheckedDay ".match(e+" "))return 0;U.MD.UI.calendar[e]=t},Namespace.register("U.MD.UI.city"),U.MD.UI.city=function(e){if(U.UF.EV.stopBubble(),e&&e.tagName){if(_cityBox=U.selectEl("#U_MD_UI_city_cityBox")[0]){var t=e.getBoundingClientRect();return _cityBox.style.top=t.top+t.height+document.documentElement.scrollTop+"px",_cityBox.style.left=t.left+document.documentElement.scrollLeft+"px",U.selectEl(_cityBox).removeClass("U_MD_UI_city_hidden"),void(U.MD.UI.city.Attr.inputNode=e)}var i=U.MD.UI.city;i.create(e),i.Attr={inputNode:e},i.init()}},U.MD.UI.city.Attr={},U.MD.UI.city.usedCity=null,U.MD.UI.city.province=null,U.MD.UI.city.city={},U.MD.UI.city.area={},U.MD.UI.city.htmlTemplate=' <ul class="U_MD_UI_city_menuBox"> <!--控件的头部-->\n\n <!--U_MD_UI_city_menuChecked 选中菜单的按钮时所用的"className":红色-->\n <!--U_MD_UI_city_filled 表示待填写class 为增删class占位置 防出错 以下都是-->\n <!--U_MD_UI_city_menuoChecked 选择城市后所添加的class 红色小圆点-->\n <li id="U_MD_UI_city_usedCityMenu" data-city-mark="U_MD_UI_city_usedCityCont" class="U_MD_UI_city_menuChecked" data-city-res="">\n <span>常用市</span>\n </li>\n\n <li id="U_MD_UI_city_provinceMenu" data-city-mark="U_MD_UI_city_provinceCont" class="U_MD_UI_city_filled" data-city-res="">\n <span>省/直辖市</span>\n </li>\n\n <li id="U_MD_UI_city_cityMenu" data-city-mark="U_MD_UI_city_cityCont" class="U_MD_UI_city_filled U_MD_UI_city_hidden" data-city-res="">\n <span>请选择</span>\n </li>\n\n <li id="U_MD_UI_city_areaMenu" data-city-mark="U_MD_UI_city_areaCont" class="U_MD_UI_city_filled U_MD_UI_city_hidden" data-city-res="">\n <span>请选择</span>\n </li>\n </ul>\n\n\n <!--以下为主要内容区域-->\n <!-- ----------------------------------------------------------------------------- -->\n <ul id="U_MD_UI_city_usedCityCont" class="U_MD_UI_city_filled U_MD_UI_city_Cont"> <!-- &lt;!&ndash;常用城市盒子节点&ndash;&gt; -->\n <li id="U_MD_UI_city_liTemplate"><span>光明新区</span></li>\n <!-- U_MD_UI_city_liTemplate 为内容区域的li的模板 可无视 已display为none -->\n <!--U_MD_UI_city_Cont_ochecked 选中城市的按钮时所用的"className":红色-->\n </ul>\n\n\n <ul class="U_MD_UI_city_filled U_MD_UI_city_Cont U_MD_UI_city_hidden" id="U_MD_UI_city_provinceCont"> <!-- &lt;!&ndash;存放省的盒子节点&ndash;&gt; -->\n </ul>\n\n\n <ul class="U_MD_UI_city_filled U_MD_UI_city_Cont U_MD_UI_city_hidden" id="U_MD_UI_city_cityCont"> <!-- &lt;!&ndash;存放市的盒子节点&ndash;&gt; -->\n </ul>\n\n\n <ul class="U_MD_UI_city_filled U_MD_UI_city_Cont U_MD_UI_city_hidden" id="U_MD_UI_city_areaCont"> <!-- &lt;!&ndash;存放地区的盒子节点&ndash;&gt; -->\n </ul>',U.MD.UI.city.create=function(e){var t=$$("div",{id:"U_MD_UI_city_cityBox",className:"U_MD_UI_city_cityBox U_MD_UI_city_hidden"},document.body);t.innerHTML+=U.MD.UI.city.htmlTemplate;var i=e.getBoundingClientRect();t.style.top=i.top+i.height+document.documentElement.scrollTop+"px",t.style.left=i.left+document.documentElement.scrollLeft+"px",U.MD.UI.city.Attr.inputNode=e,U.selectEl(t).removeClass("U_MD_UI_city_hidden")},U.MD.UI.city.init=function(){var e=U.MD.UI.city;e.getUsedCity(),e.inputEvent(),e.menuEvent()},U.MD.UI.city.inputEvent=function(){var e=U.MD.UI.city,t=(e.Attr,"U_MD_UI_city_hidden"),i=U.selectEl("#U_MD_UI_city_cityBox")[0];U.selectEl(document).bind("click",function(){U.selectEl(i).addClass(t)},!1),U.selectEl(i).bind("click",function(e){U.UF.EV.stopBubble(e)}),U.selectEl("#U_MD_UI_city_areaCont")[0].onclick=function(){$("#U_MD_UI_city_areaCont")[0]&&(U.selectEl("#U_MD_UI_city_cityBox")[0].style.display="none")}},U.MD.UI.city.menuEvent=function(){for(var e=U.MD.UI.city,t=(e.Attr,U.selectEl("[data-city-mark]")),i="U_MD_UI_city_hidden",n=0,l=t.length;n<l;n++){var r=t[n];U.selectEl(r).bind("click",function(){e.menuClassControl(this,"U_MD_UI_city_menuChecked","data-city-mark",i)}),"U_MD_UI_city_provinceMenu"===r.id&&U.selectEl(r).bind("click",function(){e.getProvince()})}},U.MD.UI.city.getUsedCity=function(){var e=U.MD.UI.city,t=(e.Attr,U.selectEl("#U_MD_UI_city_usedCityMenu")[0]),i=U.selectEl("#U_MD_UI_city_liTemplate")[0],n=U.selectEl("#U_MD_UI_city_usedCityCont")[0];e.usedCity||U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Controls","City_UsedCity"],function(l){e.usedCity=l.value,e.allDataPrint(t,e.usedCity,i,"usedCity",n)})},U.MD.UI.city.getProvince=function(){var e=U.MD.UI.city,t=(e.Attr,U.selectEl("#U_MD_UI_city_provinceMenu")[0]),i=U.selectEl("#U_MD_UI_city_liTemplate")[0],n=U.selectEl("#U_MD_UI_city_provinceCont")[0];e.province||U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Controls","City_Province"],function(l){e.province=l.value,e.allDataPrint(t,e.province,i,"province",n)})},U.MD.UI.city.getCity=function(e){var t=U.MD.UI.city,i=(t.Attr,U.selectEl("#U_MD_UI_city_cityMenu")[0]),n=U.selectEl("#U_MD_UI_city_liTemplate")[0],l=U.selectEl("#U_MD_UI_city_cityCont")[0],r="U_MD_UI_city_hidden";t.city[e]?(t.menuClassControl(i,"U_MD_UI_city_menuChecked","data-city-mark",r),t.allDataPrint(i,t.city[e],n,"city",l)):(t.menuClassControl(i,"U_MD_UI_city_menuChecked","data-city-mark",r),U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Controls","City_PidFind",e,1],function(r){t.city[e]=r.value,t.allDataPrint(i,t.city[e],n,"city",l)}))},U.MD.UI.city.getarea=function(e){var t=U.MD.UI.city,i=(t.Attr,U.selectEl("#U_MD_UI_city_areaMenu")[0]),n="U_MD_UI_city_hidden",l=U.selectEl("#U_MD_UI_city_liTemplate")[0],r=U.selectEl("#U_MD_UI_city_areaCont")[0];t.area[e]?(t.menuClassControl(i,"U_MD_UI_city_menuChecked","data-city-mark",n),t.allDataPrint(i,t.area[e],l,"area",r)):(t.menuClassControl(i,"U_MD_UI_city_menuChecked","data-city-mark",n),U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Controls","City_PidFind",e,2],function(n){t.area[e]=n.value,t.allDataPrint(i,t.area[e],l,"area",r)}))},U.MD.UI.city.allDataPrint=function(e,t,i,n,l){for(var r=U.MD.UI.city,a=(r.Attr,U.selectEl("#U_MD_UI_city_usedCityMenu")[0]),o=U.selectEl("#U_MD_UI_city_provinceMenu")[0],c=t.length,s=e,d=0;d<c;d++){var _=r.dataPrint(t[d],i,n,l);_.onclick=function(){var e=U.selectEl(this).attr("data-city-type"),t=U.selectEl(this).attr("data-city-code");switch(U.selectEl(s.children[0]).addClass("U_MD_UI_city_menuoChecked"),s.children[0].innerText=this.innerText,U.selectEl(s).attr("data-city-res",this.innerText),r.contClassControl(this,"U_MD_UI_city_Cont_ochecked"),e){case"province":r.getCity(t),r.initAllClass(a);break;case"usedCity":"重庆"===this.innerText?r.getCity(t):r.getarea(t),r.initAllClass(o);break;case"city":r.getarea(t);break;case"area":r.getRes("data-city-res")}}}},U.MD.UI.city.dataPrint=function(e,t,i,n){var l=U.MD.UI.city,r=l.clone(t),a=r.children[0],o=e.short_name,c=e.name;return r.id=i+e.id,a.innerText=o,"北京"!==o&&"上海"!==o&&"天津"!==o&&"重庆"!==o||"U_MD_UI_city_cityCont"===n.id&&(a.innerText=c),"U_MD_UI_city_areaCont"===n.id&&(a.innerText=c),a.id="span_"+i+e.id,U.selectEl(a).attr("data-city-code",e.id),U.selectEl(a).attr("data-city-type",i),n.appendChild(r),a},U.MD.UI.city.menuClassControl=function(e,t,i,n){var l=U.MD.UI.city,r=(l.Attr,U.selectEl("#U_MD_UI_city_cityMenu")[0]),a=U.selectEl("#U_MD_UI_city_areaMenu")[0],o=U.selectEl("#U_MD_UI_city_cityCont")[0],c=U.selectEl("#U_MD_UI_city_areaCont")[0],s=U.selectEl("."+t)[0];s&&U.selectEl(s).removeClass(t),U.selectEl(e).addClass(t);var d=U.selectEl("#"+U.selectEl(s).attr(i))[0],_=U.selectEl("#"+U.selectEl(e).attr(i))[0];U.selectEl(d).addClass(n),U.selectEl(_).removeClass(n);var p=e.id;switch(p){case"U_MD_UI_city_usedCityMenu":case"U_MD_UI_city_provinceMenu":U.selectEl(r).addClass(n),U.selectEl(a).addClass(n),U.selectEl(o).addClass(n),U.selectEl(c).addClass(n),r.children[0].innerText="请选择",a.children[0].innerText="请选择",o.innerHTML="",c.innerHTML="",U.selectEl(r).attr("data-city-res",""),U.selectEl(a).attr("data-city-res","");break;case"U_MD_UI_city_cityMenu":U.selectEl(e).removeClass(n),U.selectEl(a).addClass(n),U.selectEl(c).addClass(n),a.children[0].innerText="请选择",c.innerHTML="";break;case"U_MD_UI_city_areaMenu":U.selectEl(e).removeClass(n)}},U.MD.UI.city.contClassControl=function(e,t){U.MD.UI.city;for(var i=U.selectEl("."+t),n=U.selectEl(e).attr("data-city-type"),l=0,r=i.length;l<r;l++){var a=U.selectEl(i[l]).attr("data-city-type");i[l]&&a===n&&U.selectEl(i[l]).removeClass(t)}U.selectEl(e).addClass(t)},U.MD.UI.city.initAllClass=function(e){U.MD.UI.city;e.className="U_MD_UI_city_filled",e.children[0].className="",U.selectEl(e).attr("data-city-res","");for(var t=U.selectEl(".U_MD_UI_city_Cont_ochecked"),i=0;i<t.length;i++)U.selectEl(t[i]).removeClass("U_MD_UI_city_Cont_ochecked");"U_MD_UI_city_provinceMenu"===e.id&&(e.children[0].innerText="省/直辖市"),"U_MD_UI_city_usedCityMenu"===e.id&&(e.children[0].innerText="常用市")},U.MD.UI.city.getRes=function(e){for(var t=U.MD.UI.city,i=t.Attr,n=i.inputNode,l=U.selectEl("#U_MD_UI_city_cityBox")[0],r="U_MD_UI_city_hidden",a=U.selectEl("["+e+"]"),o=[],c=0,s=a.length;c<s;c++){var d=U.selectEl(a[c]).attr(e);d&&o.push(d)}n.value=o.join("-"),U.selectEl(l).addClass(r)},U.MD.UI.city.clone=function(e){for(var t=e.cloneNode(),i=e.children,n=0;n<i.length;n++){var l=i[n].cloneNode();t.appendChild(l)}return t},Namespace.register("U.MD.UI.ColorPicker"),U.MD.UI.colorPicker=U.MD.UI.ColorPicker=function(e,t){var i,n,l=$$("div",{style:{width:"180px",height:"140px",border:"1px solid #CDCDCD",backgroundColor:" #FFF",padding:"10px 10px 10px 5px",zIndex:1},className:"MD_ColorPicker"},e),r=["#ffffff","#ffccc9","#ffce93","#fffc9e","#ffffc7","#9aff99","#96fffb","#cdffff","#cbcefb","#cfcfcf","#fd6864","#fe996b","#fffe65","#fcff2f","#67fd9a","#38fff8","#68fdff","#9698ed","#c0c0c0","#fe0000","#f8a102","#ffcc67","#f8ff00","#34ff34","#68cbd0","#34cdf9","#6665cd","#9b9b9b","#cb0000","#f56b00","#ffcb2f","#ffc702","#32cb00","#00d2cb","#3166ff","#6434fc","#656565","#9a0000","#ce6301","#cd9934","#999903","#009901","#329a9d","#3531ff","#6200c9","#343434","#680100","#963400","#986536","#646809","#036400","#34696d","#00009b","#303498","#000000","#330001","#643403","#663234","#343300","#013300","#003532","#010066","#340096"];for(i=0;i<r.length;i++)n=$$("button",{style:{background:r[i],width:"15px",height:"15px",float:"left",margin:"5px 0 0 5px",border:" 1px solid transparent"}},l),n.onclick=function(e){l.style.display="none",U.UF.EV.stopBubble(e),t(this.style.background)};return U.selectEl(document).bind("click",function(){"none"!=l.style.display&&(l.style.display="none")}),U.UF.EV.stopBubble(),l},Namespace.register("U.MD.UI.Font"),Namespace.register("U.MD.UI.WordSize"),U.MD.UI.Font=function(){var e=$$("select",{style:{fontFamily:"宋体",fontSize:"16px"},className:"MD_fontFamily"});return $$("option",{value:"宋体",style:{fontFamily:"宋体"},innerHTML:"宋体"},e),$$("option",{value:"sans-serif",style:{fontFamily:"sans-serif"},innerHTML:"sans-serif"},e),$$("option",{value:"微软雅黑",style:{fontFamily:"微软雅黑"},innerHTML:"微软雅黑"},e),$$("option",{value:"楷体",style:{fontFamily:"楷体"},innerHTML:"楷体"},e),$$("option",{value:"黑体",style:{fontFamily:"黑体"},innerHTML:"黑体"},e),$$("option",{value:"隶书",style:{fontFamily:"隶书"},innerHTML:"隶书"},e),$$("option",{value:"andale mono",style:{fontFamily:"andale mono"},innerHTML:"andale mono"},e),$$("option",{value:"arial black",style:{fontFamily:"arial black"},innerHTML:"arial black"},e),e},U.MD.UI.WordSize=function(){var e=$$("select",{className:"MD_fontSize"});return $$("option",{value:"56px",style:{fontSize:"14px"},innerHTML:"初号"},e),$$("option",{value:"48px",style:{fontSize:"14px"},innerHTML:"小初"},e),$$("option",{value:"34.7px",style:{fontSize:"14px"},innerHTML:"一号"},e),$$("option",{value:"32px",style:{fontSize:"14px"},innerHTML:"小一"},e),$$("option",{value:"29.3px",style:{fontSize:"14px"},innerHTML:"二号"},e),$$("option",{value:"24px",style:{fontSize:"14px"},innerHTML:"小二"},e),$$("option",{value:"21.3px",style:{fontSize:"14px"},innerHTML:"三号"},e),$$("option",{value:"20px",style:{fontSize:"14px"},innerHTML:"小三"},e),$$("option",{value:"18.7px",style:{fontSize:"14px"},innerHTML:"四号"},e),$$("option",{value:"16px",style:{fontSize:"14px"},innerHTML:"小四"},e),$$("option",{value:"14px",style:{fontSize:"14px"},innerHTML:"五号"},e),$$("option",{value:"12px",style:{fontSize:"14px"},innerHTML:"小五"},e),$$("option",{value:"10px",style:{fontSize:"14px"},innerHTML:"10"},e),$$("option",{value:"12px",style:{fontSize:"14px"},innerHTML:"12"},e),$$("option",{value:"14px",style:{fontSize:"14px"},innerHTML:"14"},e),$$("option",{value:"16px",style:{fontSize:"14px"},innerHTML:"16"},e),$$("option",{value:"18px",style:{fontSize:"14px"},innerHTML:"18"},e),$$("option",{value:"20px",style:{fontSize:"14px"},innerHTML:"20"},e),$$("option",{value:"22px",style:{fontSize:"14px"},innerHTML:"22"},e),$$("option",{value:"24px",style:{fontSize:"14px"},innerHTML:"24"},e),$$("option",{value:"26px",style:{fontSize:"14px"},innerHTML:"26"},e),$$("option",{value:"28px",style:{fontSize:"14px"},innerHTML:"28"},e),$$("option",{value:"36px",style:{fontSize:"14px"},innerHTML:"36"},e),$$("option",{value:"42px",style:{fontSize:"14px"},innerHTML:"42"},e),$$("option",{value:"48px",style:{fontSize:"14px"},innerHTML:"48"},e),$$("option",{value:"72px",style:{fontSize:"14px"},innerHTML:"72"},e),e},Namespace.register("U.UF.UI"),U.UF.UI.Confirm=U.UF.UI.confirm=function(e,t,i){var n=$$("div",{style:{cssText:"width: 100%; background: rgb(255,255,255);overflow:hidden; "}}),l=$$("div",{style:{cssText:"width: 100%;"}},n);U.UF.C.isElement(e)?U.selectEl(l).append(e):(l.style.cssText="text-align: center; margin: 10px;",l.innerHTML=e||"内容");var r=$$("div",{style:{cssText:"height:28px; margin:14px 0;"}},n);$$("div",{style:{cssText:"text-align: center; color: rgb(255,255,255); width: 92px; line-height:28px; background: rgb(48,126,208); border-radius: 5px;float: right; margin-right:29px; "},innerHTML:"确定",onclick:function(){var e=!0;U.UF.C.isFunction(t)&&(e=t()),!1!==e&&U.UF.F.closeWindow(a.form)}},r),$$("div",{style:{cssText:"text-align: center; color: rgb(255,255,255); width: 92px; line-height:28px; background: rgb(48,126,208); border-radius: 5px;background: rgb(170,170,170); float: right; margin-right:21px;margin-left:29px;"},innerHTML:"取消",onclick:function(){U.UF.C.isFunction(i)&&i(),U.UF.F.closeWindow(a.form)}},r);var a=new U.UF.UI.form("提示",n,{style:{cssText:"font-size: 14px; background: rgb(255,255,255); width: 310px; position: fixed; box-shadow: 0 0 10px 3px rgb(0,0,0); border-radius: 5px;"}},{istop:!0,isenlarge:!1,isstretching:!1,isnarrow:!1},{style:{cssText:" background: rgb(59,88,120); padding: 5px; color: rgb(255,255,255); "}});return a},U.UF.UI.Dialog=U.UF.UI.Dialog=function(e,t){var i=$$("div",{style:{cssText:"width: 100%; background: #fff; overflow:hidden; "}}),n=$$("div",{style:{cssText:"text-align: center; margin: 30px 20px 30px 20px; "}},i);U.UF.C.isElement(e)?U.selectEl(n).append(e):n.innerHTML=e||"内容";var l=$$("div",{style:{cssText:"height:45px;"}},i),r=new U.UF.UI.form("提示框",i,{style:{cssText:"font-size: 14px; width: 300px; background:#fff; position: fixed; top: 100px; left: 40%; box-shadow: 0 0 10px 3px black; border-radius: 5px;"}},null,{style:{cssText:"background: #3b5878; padding: 10px; color:#fff;"}});$$("div",{style:{cssText:"text-align: center; color: #fff; width: 30%; padding: 5px; background: #307ed0; border-radius: 5px;float: right; margin: 0 12px 12px 0;"},innerHTML:"确定",onclick:function(){U.UF.C.isFunction(t)&&t(),U.UF.F.closeWindow(r.form)}},l)},U.UF.UI.alertClick=function(e,t){var i=$$("div",{class:"USBalert_text",style:{width:"100%"}});U.UF.C.isElement(e)?U.selectEl(i).append(e):$$("div",{style:{cssText:"text-align:center;padding:10px; margin:10px auto; word-break:break-word;"
  2. },innerHTML:e||"内容"},i);var n=$$("div",{class:"USBalert_onclicks",style:{height:"43px"}},i),l=new U.UF.UI.form("提示框",i,{style:{cssText:"font-size: 16px; width:320px; background: rgb(255,255,255);box-shadow: 0 0 10px 3px rgb(0,0,0); border-radius: 5px;"}},{isnarrow:!1,isenlarge:!1,isstretching:!1},{style:{cssText:"background: rgb(59,88,120); padding: 10px; color: rgb(255,255,255);"}});$$("div",{style:{cssText:"text-align: center; color: #fff; width: 30%;max-width:150px; padding: 5px; background: #307ed0; border-radius: 5px;float: right; margin: 0 12px 12px 0;"},innerHTML:"确定",onclick:function(){U.UF.F.closeWindow(l.form)}},n)},U.Alert=U.alert=function(e,t){!t&&(t=3e3);var i=$$("div",{style:{cssText:"padding: 12px 25px 12px 25px;font-size: 16px;max-width:300px;min-width:100px;color: rgba(255,255,255,1);background: rgba(0,0,0,0.75);border-radius: 10px;position: fixed;top:20%;left:0px;right:0px;margin:0px auto;text-align:center; word-break: break-word; "},innerHTML:e},document.body);U.UF.F.topWindow(i),setTimeout(function(){i.parentNode.removeChild(i)},t)},Namespace.register("U.MD.UI.email"),U.MD.UI.email=function(){},Namespace.register("U.MD.UI.face"),U.MD.UI.face=function(e,t){var i,n,l;if($("#U_MD_UI_face")[0])"none"==$("#U_MD_UI_face")[0].style.display?U.selectEl("#U_MD_UI_face")[0].style.display="block":U.selectEl("#U_MD_UI_face")[0].style.display="none";else{var r=$$("div",{style:{position:"relative"}},U.selectEl(e)[0]);for(n=$$("div",{id:"U_MD_UI_face",className:"U_MD_UI_face",onmousedown:U.UF.EV.stopBubble},r),l=$$("div",{className:"U_MD_UI_face_H"},n),i=0;i<=104;i++)$$("button",{className:"U_MD_UI_face_C",style:{opacity:"0"},onclick:U.UF.C.closure(function(e){U.UF.EV.stopBubble(),U.MD.UI.face.printEmoticon(n,e,U.UF.E.getRangeAt(),t)},[i])},l);U.selectEl("body").unbind("click",U.MD.UI.face.externalClick),U.selectEl("body").bind("click",U.MD.UI.face.externalClick)}t.focus()},U.MD.UI.face.externalClick=function(e){"BUTTON"!=window.event.srcElement.tagName&&U.selectEl("#U_MD_UI_face")[0]&&(U.selectEl("#U_MD_UI_face")[0].style.display="none")},U.MD.UI.face.printEmoticon=function(e,t,i,n){var l="/img/ChatingFaceGif/[face]("+t+").gif";if(i){var r='<img contentEditable="true" src="'+l+'">';U.UF.E.addRange(r,null,!0)}else $$("img",{onerror:U.MD.C.imgError,src:l,contentEditable:"true"},U.selectEl(n)[0]);U.selectEl(e)[0].style.display="none"},Namespace.register("U.UF.UI"),U.UF.UI.form=function(e,t,i,n,l,r,a,o){var c=this;if(i&&U.UF.UI.form.allForm[i.id])c=U.UF.UI.form.allForm[i.id];else this.id=i&&i.id?i.id:Guid.newGuid(),U.UF.UI.form.allForm[this.id]=this;return c.form,c.header,c.middle,c.title=e,c.content=t,c.formattr=i,c.headattr=l,c.contentattr=r,c.headbottomattr=a,null==n&&(n={}),c.istop=null,null!=n.istop&&(c.istop=n.istop),c.isdrag=!0,null!=n.isdrag&&(c.isdrag=n.isdrag),c.isstretching=!0,null!=n.isstretching&&(c.isstretching=n.isstretching),c.isenlarge=!0,null!=n.isenlarge&&(c.isenlarge=n.isenlarge),c.isnarrow=!0,null!=n.isnarrow&&(c.isnarrow=n.isnarrow),c.isclose=!0,c.closecallback=n.closecallback,null!=n.isclose&&(c.isclose=n.isclose),c.parentel=o||document.body,c.create(),c},U.UF.UI.form.allForm={},U.UF.UI.form.prototype={create:function(){var e,t,i,n,l,r,a,o,c,s,d=this.formattr||{},_=this.headattr||{},p=this.contentattr||{},u=U.UF.UI.form.allForm[d.id]?U.UF.UI.form.allForm[d.id].form:null;d.style?(d.style.cssText=d.style.cssText||"",d.style.cssText="width: 70%; position: fixed; border: 1px solid #444; background-color: #fff; z-index: 10; border-radius: 1px; overflow: hidden; -moz-box-shadow:0 0 30px 5px #555; -webkit-box-shadow:0 0 30px 5px #555; box-shadow:0 0 30px 5px #555; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius:5px;"+d.style.cssText):d.style={cssText:"width: 70%; position: fixed; border: 1px solid #444; background-color: #fff; z-index: 10; border-radius: 1px; overflow: hidden; -moz-box-shadow:0 0 30px 5px #555; -webkit-box-shadow:0 0 30px 5px #555; box-shadow:0 0 30px 5px #555; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius:5px;"},d.close=U.UF.C.apply(this,function(){U.UF.F.closeWindow(this.form)}),d.usform="true",d.id=d.id||"",d.style=d.style||{},d.onresize?(t=d.onresize,s=d.onmousedown,d.onresize=U.UF.C.apply(this,function(){this.size(),t&&t()}),d.onmousedown=U.UF.C.apply(this,function(){!1!==this.istop&&this.top(),s&&s()})):!1!==d.onresize&&(d.onresize=U.UF.C.apply(this,function(){this.size()}));var D=$$("div",this.formattr);if(!0===this.istop?(D.style.zIndex="9999",D.__top__="false"):!1===this.istop&&(D.__top__="false"),this.form=D,!1!==this.title&&(_.style?(_.style.cssText=_.style.cssText||"",_.style.cssText="text-indent: 10px; color: White; line-height: inherit; font-size: 14px; height: 30px; line-height: 30px; background-color: #2967A7; overflow: hidden; color: White; font-size: 14px; overflow: hidden; "+_.style.cssText):_.style={cssText:"text-indent: 10px; color: White; line-height: inherit; font-size: 14px; height: 30px; line-height: 30px; background-color: #2967A7; overflow: hidden; color: White; font-size: 14px; overflow: hidden; "},this.isdrag&&(_.onmousedown=function(){U.UF.F.drag(D)}),i=$$("div",_,D),U.UF.C.isString(this.title)?i.innerHTML=this.title:U.UF.C.isElement(this.title)&&i.appendChild(this.title),this.header=i),n=$$("div",{style:{cssText:"width: 100%; height:100%; position: relative;"}},D),p.usbody="true",p.style?(p.style.cssText=p.style.cssText||"",p.style.cssText="text-align: left; overflow: hidden;"+p.style.cssText):p.style={cssText:"text-align: left; overflow: auto;"},l=$$("div",p,n),U.UF.C.isString(this.content)?l.innerHTML=this.content:U.UF.C.isElement(this.content)&&l.appendChild(this.content),this.middle=l,!1===this.title&&this.isdrag&&(n.onmousedown=function(){U.UF.F.drag(D)}),!1!==this.isstretching)for(e in r=$$("div",{style:{cssText:"display: block;"}},D),a={top:"cursor: n-resize; left: 0px; top: 0px; width: 100%; height: 5px;",rightTop:"cursor: ne-resize; right: -2px; top: -2px; width: 12px; height: 12px;",leftTop:"cursor: nw-resize; top: 0px; left: 0px; width: 12px; height: 12px;",left:"cursor: w-resize; left: 0px; top: 0px; width: 5px; height: 100%;",right:"cursor: e-resize; right: 0px; top: 0px; width: 5px; height: 100%;",bottom:"cursor: s-resize; left: 0px; bottom: 0px; width: 100%; height: 5px;",leftBottom:"cursor: sw-resize; left: -2px; bottom: -2px; width: 12px; height: 12px;",rightBottom:"cursor: se-resize; right: -2px; bottom: -2px; width: 12px; height: 12px;"},a)$$("div",{style:{cssText:"position: absolute; overflow: hidden; display: block; z-index: 10;"+a[e]},onmousedown:U.UF.C.closure(function(e,t){U.UF.F.stretching(D,t,U.UF.C.apply(e,e.size))},[this,e])},r);!1!==this.title&&(o=$$("div",{style:{cssText:"position: absolute; top: 3px; right: 0px; width: 80px; display: table-cell; vertical-align: middle;"}},D)),!1!==this.isclose&&$$("div",{style:{cssText:"background-image:url(../../../img/close.png); _background-image:url(/img/close.png);width: 14px; height: 14px; background-repeat: no-repeat; background-size: 100%; float: right; margin-right: 5px;margin-top:6px; cursor: pointer;"},title:"点击关闭",onmousedown:U.UF.EV.stopBubble,onclick:U.UF.C.apply(this,function(){U.UF.F.closeWindow(this.form);try{U.MD.D.T.taskbar.close&&(U.MD.D.T.taskbar.close({forms:D}),U.MD.N.urlWrite("","智慧课堂平台"))}catch(e){}U.UF.C.isFunction(this.closecallback)&&this.closecallback()})},o),!1!==this.isenlarge&&(c=$$("div",{style:{cssText:"background-image:url(../../../img/max.png); _background-image:url(/img/max.png); background-size: 100%; float: right; margin-right: 10px; width: 17px; height: 17px; cursor: pointer;margin-top: 4px;"},title:"最大化",onmousedown:U.UF.EV.stopBubble,onclick:function(){U.UF.F.windowZooming(D)}},o),i&&(i.ondblclick=U.UF.C.apply(i,function(){(event.srcElement==this||U.UF.EL.isChild(this,event.srcElement))&&c.onclick()}))),!1!==this.isnarrow&&$$("div",{style:{cssText:"background-image:url(../../../img/min.png); _background-image:url(/img/min.png);background-size: 100%; float: right; margin-right: 10px; margin-top: 3px; width: 20px; height: 20px; cursor: pointer;background-repeat: no-repeat;"},title:"最小化",onmousedown:U.UF.EV.stopBubble,onclick:function(){U.UF.F.windowMinimize(D)}},o),u&&null!=u.parentNode?u.parentNode.replaceChild(D,u):this.parentel.appendChild(D),""==D.style.top&&""==D.style.left&&""==D.style.right&&""==D.style.bottom?U.UF.F.windowTopCenter(D):U.UF.F.topWindow(D),this.size()},top:function(){U.UF.F.topWindow(this.form)},size:function(){this.header&&this.header.clientHeight,this.header?this.middle.style.height=this.form.clientHeight-this.header.clientHeight+"px":this.middle.style.height=this.form.clientHeight+"px"}},U.UF.UI.form.windowResize=function(){var e,t,i,n,l,r=US.width,a=US.height,o=U.UF.UI.form.allForm;for(e in o)l=o[e].form,"none"!=$(l).css("display")&&(t={},i=U.selectEl(l).css("width"),n=U.selectEl(l).css("height"),i=i.indexOf("%")>-1?i.toInt()/100:l.offsetWidth/r,n=n.indexOf("%")>-1?n.toInt()/100:l.offsetWidth/a,""!=l.style.right&&"auto"!=l.style.right||(t.left=l.offsetLeft+(document.body.offsetWidth-r)*((1-i)/2)+"px"),""!=l.style.bottom&&"auto"!=l.style.bottom||(t.top=l.offsetTop+(document.body.offsetHeight-a)*((1-n)/2)+"px"),U.selectEl(l).addAttrArray({style:t}))},U.UF.UI.form.closeWindows=function(){var e;for(e in U.UF.UI.form.allForm)U.UF.UI.form.allForm[e].isclose&&U.UF.UI.form.allForm[e].form.close()},Namespace.register("U.MD.UI.music"),U.MD.UI.music=function(e,t,i,n){var l,r=U.MD.UI.music;(l=U.selectEl("#U_MD_UI_music_musicBox")[0])&&l.remove(),r.create(n),r.Attr={musicList:e,musicIndex:t,autoplay:i,currentTime:null,endTime:null},r.init()},U.MD.UI.music.Attr=null,U.MD.UI.music.htmlTemplate=' <div class="U_MD_UI_music_leftCont">\n <div class="U_MD_UI_music_CoverBox">\n <img src="/img/Controls/Audio/pc/电脑图标.png" alt="" id="U_MD_UI_music_Cover">\n </div> <!-- 音乐封面图片 -->\n </div>\n <div class="U_MD_UI_music_rightCont">\n <div class="U_MD_UI_music_Name" id="U_MD_UI_music_Name"></div> <!-- 音乐名字 -->\n <div class="U_MD_UI_music_leftBtn" id="U_MD_UI_music_leftBtn"></div> <!-- 左按钮 -->\n <div class="U_MD_UI_music_pauseBtn U_MD_UI_music_playBtn" id="U_MD_UI_music_playBtn"></div> <!-- 播放/暂停 按钮 -->\n <div class="U_MD_UI_music_rightBtn" id="U_MD_UI_music_rightBtn"></div> <!-- 右按钮 -->\n <div class="U_MD_UI_music_soundOpen" id="U_MD_UI_music_soundSwitch"></div> <!-- 声音开关按钮 -->\n <div class="U_MD_UI_music_soundBox" id="U_MD_UI_music_soundBox"> <!-- 声音条盒子节点 -->\n <div class="U_MD_UI_music_soundBar" id="U_MD_UI_music_soundBar" style="width: 31px;"></div> <!-- 声音条 -->\n <div class="U_MD_UI_music_soundBall" id="U_MD_UI_music_soundBall" style="left: 31px;"></div> <!-- 声音球 -->\n </div>\n <div class="U_MD_UI_music_listBtn"></div> <!-- 右上角的列表按钮 -->\n <div class="U_MD_UI_music_shrinkBtn" id="U_MD_UI_music_shrinkBtn"></div> <!-- 右上角的缩小按钮 -->\n <div class="U_MD_UI_music_closeBtn" id="U_MD_UI_music_closeBtn"></div> <!-- 右上角的关闭按钮 -->\n </div>\n <div class="U_MD_UI_music_progressBox" id="U_MD_UI_music_progressBox"> <!-- 时间条盒子节点 -->\n <div class="U_MD_UI_music_progressBar" id="U_MD_UI_music_progressBar" style="width: 0.64px;"></div> <!-- 时间条 -->\n <div class="U_MD_UI_music_progressBall" id="U_MD_UI_music_progressBall" style="left: 0.64px;"></div> <!-- 时间球 -->\n </div>\n <audio id="U_MD_UI_music_audio" autoplay="" src=""></audio>',U.MD.UI.music.create=function(e){e||document.body;var t={style:{border:"none"},id:"U_MD_UI_music_musicBox",className:"U_MD_UI_music_musicBox"},i={isclose:!1,isstretching:!1,isenlarge:!1,isnarrow:!1},n={style:{height:"13px","background-color":"#cc5b5b"}};U.MD.UI.music.player=new U.UF.UI.form(!1,U.MD.UI.music.htmlTemplate,t,i,n),U.selectEl("#U_MD_UI_music_musicBox")[0].style.overflow=""},U.MD.UI.music.init=function(){var e=U.MD.UI.music,t=e.Attr,i=U.selectEl("#U_MD_UI_music_audio"),n=t.musicList,l=t.musicIndex;i[0].src=n[l].src;U.selectEl("#U_MD_UI_music_playBtn");var r=U.selectEl("#U_MD_UI_music_Name");U.selectEl("#U_MD_UI_music_Cover");t.autoplay||i[0].pause(),e.openBtnEvent(),e.shrinkBtnEvent(),e.soundControl(),e.playEvent(),e.switchMusic(),e.progressControl(),i.bind("durationchange",function(){t.endTime=this.duration,l=t.musicIndex,r[0].innerText=n[l].title}),i.bind("ended",function(){l=t.musicIndex;var e=n.length-1;l===e?(t.musicIndex=0,l=t.musicIndex,i[0].src=n[l].src):(t.musicIndex++,l=t.musicIndex,i[0].src=n[l].src)})},U.MD.UI.music.openBtnEvent=function(){var e=U.MD.UI.music;U.selectEl("#U_MD_UI_music_closeBtn").bind("click",function(){var t=U.selectEl("#U_MD_UI_music_audio");t[0].paused||(U.selectEl("#U_MD_UI_music_playBtn").addClass("U_MD_UI_music_playBtn"),t[0].pause()),U.UF.F.closeWindow(e.player.form),U.selectEl("#U_MD_D_T_taskbar_music").remove()})},U.MD.UI.music.shrinkBtnEvent=function(){U.selectEl("#U_MD_UI_music_shrinkBtn").bind("click",function(){U.UF.F.windowMinimize(U.MD.UI.music.player.form)})},U.MD.UI.music.playEvent=function(){var e=U.MD.UI.music,t=(e.Attr,U.selectEl("#U_MD_UI_music_playBtn")),i=U.selectEl("#U_MD_UI_music_audio");t.bind("click",function(){i[0].paused?(t.removeClass("U_MD_UI_music_playBtn"),i[0].play()):(t.addClass("U_MD_UI_music_playBtn"),i[0].pause())})},U.MD.UI.music.switchMusic=function(){var e=U.MD.UI.music,t=e.Attr,i=U.selectEl("#U_MD_UI_music_audio"),n=U.selectEl("#U_MD_UI_music_rightBtn"),l=U.selectEl("#U_MD_UI_music_leftBtn"),r=t.musicList,a=t.musicIndex,o=r.length-1;n.bind("click",function(){a=t.musicIndex,a===o?(t.musicIndex=0,a=t.musicIndex,i[0].src=r[a].src):(t.musicIndex++,a=t.musicIndex,i[0].src=r[a].src)}),l.bind("click",function(){a=t.musicIndex,0===a?(t.musicIndex=o,a=t.musicIndex,i[0].src=r[a].src):(t.musicIndex--,a=t.musicIndex,i[0].src=r[a].src)})},U.MD.UI.music.soundControl=function(){var e=U.MD.UI.music,t=U.selectEl("#U_MD_UI_music_audio"),i=U.selectEl("#U_MD_UI_music_soundBox"),n=U.selectEl("#U_MD_UI_music_soundBall"),l=U.selectEl("#U_MD_UI_music_soundBar"),r=i[0].clientWidth,a=.5,o=U.selectEl("#U_MD_UI_music_soundSwitch");t[0].volume=a,n[0].style.left=r*a+"px",l[0].style.width=r*a+"px",o.bind("click",function(){if(e.toggleClass(this,"U_MD_UI_music_soundClose"),$(this).hasClass("U_MD_UI_music_soundClose"))this._volume=t[0].volume,this._soundBallX=parseFloat(n.css("left")),this._soundBarW=parseFloat(l.css("width")),n[0].style.left=0,l[0].style.width=0,t[0].volume=0;else{if(!this._volume)return;t[0].volume=this._volume,n[0].style.left=this._soundBallX+"px",l[0].style.width=this._soundBarW+"px"}}),i.bind("mousedown",function(i){var c=e.getOffsetLeft(this),s=c+r,U=i.pageX;U=Math.max(U,c),U=Math.min(U,s);var d=U-c;a=Math.round(100*parseFloat(d/r))/100,n[0].style.left=r*a+"px",l[0].style.width=r*a+"px",t[0].volume=a,t[0].volume<=0?o.addClass("U_MD_UI_music_soundClose"):o.removeClass("U_MD_UI_music_soundClose")}),n.bind("mousedown",function(e){U.UF.EV.stopBubble(e);var i=e.pageX,c=function(e){U.UF.EV.stopDefault(e);var c=e.pageX,s=c-i+d;s=Math.max(0,s),s=Math.min(r,s),n[0].style.left=s+"px",l[0].style.width=s+"px",a=Math.round(100*parseFloat(s/r))/100,t[0].volume=a,t[0].volume<=0?o.addClass("U_MD_UI_music_soundClose"):o.removeClass("U_MD_UI_music_soundClose")},s=function(){U.selectEl(document).unbind("mousemove",c),U.selectEl(document).unbind("mouseup",s)},d=parseFloat(n.css("left"));U.selectEl(document).bind("mousemove",c),U.selectEl(document).bind("mouseup",s)})},U.MD.UI.music.progressControl=function(){var e,t=U.MD.UI.music,i=t.Attr,n=U.selectEl("#U_MD_UI_music_audio"),l=U.selectEl("#U_MD_UI_music_progressBox"),r=U.selectEl("#U_MD_UI_music_progressBall"),a=U.selectEl("#U_MD_UI_music_progressBar"),o=U.selectEl("#U_MD_UI_music_playBtn"),c=l[0].clientWidth,s=!0;n.bind("timeupdate",function(){if(this.paused?o.addClass("U_MD_UI_music_playBtn"):o.removeClass("U_MD_UI_music_playBtn"),s){e=this.currentTime;var t=Math.round(1e4*parseFloat(e/i.endTime))/1e4;r[0].style.left=c*t+"px",a[0].style.width=c*t+"px"}}),l.bind("mousedown",function(e){var l=t.getOffsetLeft(this),o=l+c,s=e.pageX;s=Math.max(s,l),s=Math.min(s,o);var U=s-l;_speed=Math.round(1e4*parseFloat(U/c))/1e4,r[0].style.left=c*_speed+"px",a[0].style.width=c*_speed+"px",n[0].currentTime=i.endTime*_speed}),r.bind("mousedown",function(t){s=!1,U.UF.EV.stopBubble(t);var l=t.pageX,o=function(t){U.UF.EV.stopDefault(t);var n=t.pageX,o=n-l+_;o=Math.max(0,o),o=Math.min(c,o),r[0].style.left=o+"px",a[0].style.width=o+"px",_speed=Math.round(1e4*parseFloat(o/c))/1e4,r[0].style.left=c*_speed+"px",a[0].style.width=c*_speed+"px",e=i.endTime*_speed},d=function(){s=!0,n[0].currentTime=e,U.selectEl(document).unbind("mousemove",o),U.selectEl(document).unbind("mouseup",d)},_=parseFloat(r.css("left"));U.selectEl(document).bind("mousemove",o),U.selectEl(document).bind("mouseup",d)})},U.MD.UI.music.getOffsetLeft=function(e){for(var t=e.offsetLeft,i=e.offsetParent;null!=i;)t+=i.offsetLeft,i=i.offsetParent;return t},U.MD.UI.music.secondToDate=function(e){var t=Math.floor(e/60%60),i=Math.floor(e%60);return t<10&&(t="0"+t),i<10&&(i="0"+i),t+":"+i},U.MD.UI.music.toggleClass=function(e,t){$(e).hasClass(t)?U.selectEl(e).removeClass(t):U.selectEl(e).addClass(t)},Namespace.register("U.UF.P"),U.UF.P.apply=function(e,t,i){return function(){e.apply(i,t)}},U.UF.P.pagepId=0,U.UF.P.PPage=U.UF.P.page=function(e,t,i,n,l){this.PageNum=0,this.Index=0,this.Pageall=0,this.init(e,t,i,n,l)},U.UF.P.page.prototype={init:function(e,t,i,n,l){this.PageNum=n,this.Index=n-1;var r=U.selectEl(e)[0],a=Math.ceil(t/i);if(this.Pageall=a,r.getElementsByClassName("U_MD_F_Y")[0])return!1;U.UF.P.pagepId++;var o,c=$$("div",{className:"U_MD_F_Y"},r),s=$$("div",{className:"U_MD_F_YL"},c),d=$$("div",{className:"U_MD_F_YLO U_MD_F_Y_Button",innerHTML:"首页",title:"首页",pid:U.UF.P.pagepId+"1"},s),_=$$("div",{className:"U_MD_F_YLT U_MD_F_Y_Button",title:"上一页",pid:U.UF.P.pagepId+"3"},s),p=$$("div",{className:"U_MD_F_YN"},s),u=Math.min(a,Math.max(n+5,10));for(o=Math.max(1,Math.min(n-5,a-10));o<=u;o++)(function(e,t){var i=$$("div",{innerHTML:e,pid:U.UF.P.pagepId+"5"},p);e==n&&(i.className="U_MD_F_Y_Button_Active"),i.onclick=U.UF.P.apply(function(e){U.UF.P.centerEle(t,i)},[o],t)})(o,this);var D=$$("div",{className:"U_MD_F_YLS U_MD_F_Y_Button",title:"下一页",pid:U.UF.P.pagepId+"4"},s),I=$$("div",{className:"U_MD_F_YLF U_MD_F_Y_Button",innerHTML:"尾页",title:"尾页",pid:U.UF.P.pagepId+"2"},s),M=$$("div",{className:"U_MD_F_YR"},c);$$("span",{innerHTML:"到"},M);var m=$$("input",{type:"text"},M);$$("span",{innerHTML:"页"},M);var f=$$("div",{className:"U_MD_F_YRZ",pid:U.UF.P.pagepId+"6",innerHTML:"确定"},M);if(this.PageNum<a+1)for(var h=U.selectEl(".list"+U.UF.P.pagepId),g=1;g<h.length+1;g++)this.PageNum==g&&U.selectEl(h[this.PageNum-1]).addClass("U_MD_F_Y_Button_Active");d.onclick=U.UF.P.apply(this.fPage,[d,a,l],this),_.onclick=U.UF.P.apply(this.fPage,[_,a,l],this),U.UF.P.centerEle=function(e,t){U.UF.P.apply(e.fPage,[t,a,l],e)()},D.onclick=U.UF.P.apply(this.fPage,[D,a,l],this),I.onclick=U.UF.P.apply(this.fPage,[I,a,l],this),f.onclick=U.UF.P.apply(this.fPage,[f,a,l,m],this),m.onkeyup=function(){"13"==event.keyCode&&f.onclick()}},fPage:function(e,t,i,n){if(_el1=e.pid,_el=_el1.charAt(_el1.length-1),5==_el?_list=U.selectEl($(e).Parent()).Parent().children[2].children:6==_el?_list=U.selectEl($(e).Parent()).Parent().children[0].children[2].children:_list=U.selectEl(e).Parent().children[2].children,U.selectEl(".U_MD_F_Y_Button_Active").removeClass("U_MD_F_Y_Button_Active"),1==_el){if(0==this.Index&&this.Index++,this.PageNum>1)return U.selectEl(_list[0]).addClass("U_MD_F_Y_Button_Active"),this.Index=0,this.PageNum=1,this.pagefun(this.PageNum,_list),void i(this.PageNum);U.selectEl(_list[--this.Index]).addClass("U_MD_F_Y_Button_Active")}else if(2==_el){if(this.PageNum<this.Pageall)return this.Index=t,this.PageNum=this.Pageall,this.pagefun(this.PageNum,_list),void i(this.PageNum);U.selectEl(_list[this.Index]).addClass("U_MD_F_Y_Button_Active")}else if(3==_el){if(this.Index>0)return U.selectEl(_list[--this.Index]).addClass("U_MD_F_Y_Button_Active"),this.PageNum--,this.pagefun(this.PageNum,_list),void i(this.PageNum);U.selectEl(_list[this.Index]).addClass("U_MD_F_Y_Button_Active")}else if(4==_el){if(this.PageNum<this.Pageall)return U.selectEl(_list[++this.Index]).addClass("U_MD_F_Y_Button_Active"),this.PageNum++,this.pagefun(this.PageNum,_list),void i(this.PageNum);U.selectEl(_list[this.Index]).addClass("U_MD_F_Y_Button_Active")}else{if(5==_el)return this.pagefun(e,_list),void i(this.PageNum);if(6==_el){var l=new RegExp("^[0-9]*$");n.value.match(l)&&(n.value>=1&&n.value<=this.Pageall?(this.PageNum=n.value,this.pagefun(this.PageNum,_list),i(this.PageNum)):(U.alert("无效的输入"),U.selectEl(_list[this.Index]).addClass("U_MD_F_Y_Button_Active")))}}},pagefun:function(e,t){var i=t,n=parseInt(e.innerHTML)||e;U.selectEl(".U_MD_F_Y_Button_Active").removeClass("U_MD_F_Y_Button_Active");var l,r=Math.ceil(i.length/2),a=(this.Index,null),o=parseInt($(i)[$(i).length-1].innerText);if(n<r||n>this.Pageall-r&&n<=this.Pageall)if(n>this.Pageall-r&&n<=this.Pageall){var c=this;[].__proto__.forEach.apply($(i),[function(e,t,i){e.innerText=c.Pageall+1-i.length+t}])}else n<r&&[].__proto__.forEach.apply($(i),[function(e,t,i){e.innerText=t+1}]);else Math.ceil(o/n)<o-n||this.Index,a=n-parseInt(i[r-1].innerText),[].__proto__.forEach.apply($(i),[function(e,t,i){e.innerText=parseInt(e.innerText)+a}]),this.Index=r-1;[].__proto__.forEach.apply(i,[function(e,t,i){parseInt(e.innerHTML)==n&&(l=t)}]),this.Index=l,this.PageNum=n,U.selectEl(i[this.Index]).addClass("U_MD_F_Y_Button_Active")}},Namespace.register("U.MD.UI.picture"),U.MD.UI.picture=function(e,t){if($("#U_MD_UI_PictureForm")[0])return"none"===$("#U_MD_UI_PictureForm")[0].style.display&&(U.selectEl("#U_MD_UI_PictureForm")[0].style.display="block"),U.MD.UI.picture.DIVBOX={USERPICS:e,PICAREA:U.selectEl("#U_MD_UI_Picture_picArea")[0],PICBOX:U.selectEl("#U_MD_UI_Picture_picBox")[0],FA:U.selectEl("#U_MD_UI_Picture_fa")[0]},void U.MD.UI.picture.initloadPic(e,t);e.length&&(U.MD.UI.picture.create(e,t),U.MD.UI.picture.DIVBOX.PICAREA.onmousedown=function(e){U.MD.UI.picture.mDown(U.MD.UI.picture.DIVBOX.PICAREA,U.MD.UI.picture.DIVBOX.PICBOX,e)},U.MD.UI.picture.wheel())},U.MD.UI.picture.FA=[{src:"/img/pictureView/add.png",id:"U_MD_UI_Picture_add"},{src:"/img/pictureView/narrow.png",id:"U_MD_UI_Picture_narrow"},{src:"/img/pictureView/prev.png",id:"U_MD_UI_Picture_prev"},{src:"/img/pictureView/next.png",id:"U_MD_UI_Picture_next"},{src:"/img/pictureView/turnLeft.png",id:"U_MD_UI_Picture_turnLeft"},{src:"/img/pictureView/turnRight.png",id:"U_MD_UI_Picture_turnRight"}],U.MD.UI.picture.picnumber=0,U.MD.UI.picture.rotatenum=0,U.MD.UI.picture.originalSize=[],U.MD.UI.picture.pics=[],U.MD.UI.picture.scalingvalue=50,U.MD.UI.picture.focuspicsrc="",U.MD.UI.picture.focuspicsize="",U.MD.UI.picture.create=function(e,t){var i=$$("div",{style:{height:"100%",overflow:"hidden"},id:"U_MD_UI_Picture_bossBox"}),n=$$("div",{id:"U_MD_UI_Picture_picBox",className:"U_MD_UI_Picture_picBox"},i);$$("div",{id:"U_MD_UI_Picture_picArea",className:"U_MD_UI_Picture_picArea"},n);$$("div",{style:{height:"60px",width:"100%",position:"absolute",bottom:"0","background-color":"#ffffff","text-align":"center"},id:"U_MD_UI_Picture_fa"},i);new U.UF.UI.form("<span id='U_MD_UI_Picture_imgInfo'></span> - <span id='U_MD_UI_Picture_r'>100%</span>",i,{style:{width:document.documentElement.clientWidth/1.5+"px",height:document.documentElement.clientHeight/1.5+"px",position:"absolute"},id:"U_MD_UI_PictureForm"},{isdrag:!0,isstretching:!0,isenlarge:!0,isclose:!0,isnarrow:!0},{style:{padding:"10px","background-color":"#22508c"}}),n.style.height=n.clientHeight-60+"px",U.MD.UI.picture.DIVBOX={USERPICS:e,PICAREA:U.selectEl("#U_MD_UI_Picture_picArea")[0],PICBOX:U.selectEl("#U_MD_UI_Picture_picBox")[0],FA:U.selectEl("#U_MD_UI_Picture_fa")[0]};for(var l=$$("div",{style:{display:"inline-block","line-height":"40px","margin-top":"10px"}},U.MD.UI.picture.DIVBOX.FA),r=0;r<U.MD.UI.picture.FA.length;r++)$$("span",{style:{"background-image":"url("+U.MD.UI.picture.FA[r].src+")",width:"40px",height:"40px",display:"inline-block",margin:"0 15px"},id:U.MD.UI.picture.FA[r].id},l);U.MD.UI.picture.initloadPic(null,t),U.selectEl("#U_MD_UI_Picture_add")[0].onclick=U.UF.C.apply(this,function(){this.changeSize(U.MD.UI.picture.scalingvalue,U.MD.UI.picture.rotatenum)}),U.selectEl("#U_MD_UI_Picture_narrow")[0].onclick=U.UF.C.apply(this,function(){this.changeSize(-U.MD.UI.picture.scalingvalue,U.MD.UI.picture.rotatenum)}),U.selectEl("#U_MD_UI_Picture_prev")[0].onclick=U.UF.C.apply(this,function(){this.prevPic(0)}),U.selectEl("#U_MD_UI_Picture_next")[0].onclick=U.UF.C.apply(this,function(){this.prevPic(1)}),U.selectEl("#U_MD_UI_Picture_turnLeft")[0].onclick=U.UF.C.apply(this,function(){this.turn(1)}),U.selectEl("#U_MD_UI_Picture_turnRight")[0].onclick=U.UF.C.apply(this,function(){this.turn(0)}),i.onresize=function(){n.style.height=i.clientHeight-60+"px"},n.onresize=function(){U.MD.UI.picture.checkHeight()}},U.MD.UI.picture.initloadPic=function(e,t){e?(U.MD.UI.picture.DIVBOX.PICAREA.innerHTML="",U.MD.UI.picture.DIVBOX.PICAREA.style=null,U.MD.UI.picture.picnumber=t||0,U.MD.UI.picture.rotatenum=0,U.MD.UI.picture.DIVBOX.USERPICS=e):U.MD.UI.picture.picnumber=t>=0?t:0,U.MD.UI.picture.createPic(),U.MD.UI.picture.pics=U.selectEl("#U_MD_UI_Picture_picArea > ul > li > img"),U.MD.UI.picture.pics[U.MD.UI.picture.picnumber].onload=U.UF.C.apply(this,function(){this.originalSize=this.getImgNaturalDimensions(U.MD.UI.picture.pics[U.MD.UI.picture.picnumber]),this.checkHeight()})},U.MD.UI.picture.createPic=function(){for(var e=$$("ul",{id:"ul"},U.MD.UI.picture.DIVBOX.PICAREA),t=0;t<U.MD.UI.picture.DIVBOX.USERPICS.length;t++){var i=$$("li",{},e);"object"==typeof U.MD.UI.picture.DIVBOX.USERPICS[t]?t===U.MD.UI.picture.picnumber?($$("img",{onerror:U.MD.C.imgError,src:U.MD.UI.picture.DIVBOX.USERPICS[t].src},i),U.MD.UI.picture.focuspicsrc=U.MD.UI.picture.DIVBOX.USERPICS[t].src,U.MD.UI.picture.DIVBOX.USERPICS[t].size&&(U.MD.UI.picture.focuspicsize=U.MD.UI.picture.DIVBOX.USERPICS[t].size)):$$("img",{onerror:U.MD.C.imgError,src:U.MD.UI.picture.DIVBOX.USERPICS[t].src,style:{display:"none"}},i):"string"==typeof U.MD.UI.picture.DIVBOX.USERPICS[t]&&(t===U.MD.UI.picture.picnumber?($$("img",{onerror:U.MD.C.imgError,src:U.MD.UI.picture.DIVBOX.USERPICS[t]},i),U.MD.UI.picture.focuspicsrc=U.MD.UI.picture.DIVBOX.USERPICS[t]):$$("img",{onerror:U.MD.C.imgError,src:U.MD.UI.picture.DIVBOX.USERPICS[t],style:{display:"none"}},i))}},U.MD.UI.picture.turn=function(e){e?(U.MD.UI.picture.rotatenum--,U.MD.UI.picture.rotatenum<0?U.MD.UI.picture.rotatenum=3:U.MD.UI.picture.rotatenum):(U.MD.UI.picture.rotatenum++,U.MD.UI.picture.rotatenum>3?U.MD.UI.picture.rotatenum=0:U.MD.UI.picture.rotatenum),U.MD.UI.picture.rotating()},U.MD.UI.picture.rotating=function(){var e="rotate("+90*U.MD.UI.picture.rotatenum+"deg)";U.MD.UI.picture.rotatenum%2!=0?(U.MD.UI.picture.DIVBOX.PICAREA.style.width=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-20+"px",U.MD.UI.picture.compatibleRotate(U.MD.UI.picture.DIVBOX.PICAREA,e),U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.clientWidth/2-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/2+10+"px",U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/2-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth/2+"px",("Microsoft Internet Explorer"==navigator.appName&&"8."==navigator.appVersion.match(/8./i)||"Microsoft Internet Explorer"==navigator.appName&&"7."==navigator.appVersion.match(/7./i))&&(U.MD.UI.picture.DIVBOX.PICAREA.style.top="10px",U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/2-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/2+"px")):(U.MD.UI.picture.DIVBOX.PICAREA.setAttribute("style",""),U.MD.UI.picture.compatibleRotate(U.MD.UI.picture.DIVBOX.PICAREA,e),U.MD.UI.picture.DIVBOX.PICAREA.style.width=U.MD.UI.picture.originalSize[0]>U.MD.UI.picture.DIVBOX.PICAREA.clientWidth+150?"1290px":U.MD.UI.picture.DIVBOX.PICAREA.clientWidth+150,U.MD.UI.picture.checkHeight()),U.selectEl("#U_MD_UI_Picture_r")[0].innerText=Math.round(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/U.MD.UI.picture.originalSize[1]*100)+"%"},U.MD.UI.picture.compatibleRotate=function(e,t){e.style.webkitTransform=t,e.style.MozTransform=t,e.style.mturnsTransform=t,e.style.OTransform=t,e.style.transform=t,("Microsoft Internet Explorer"==navigator.appName&&"8."==navigator.appVersion.match(/8./i)||"Microsoft Internet Explorer"==navigator.appName&&"7."==navigator.appVersion.match(/7./i))&&(e.style.filter="progid:DXImageTransform.Microsoft.BasicImage(rotation="+Math.abs(U.MD.UI.picture.rotatenum)+")")},U.MD.UI.picture.prevPic=function(e){U.MD.UI.picture.pics[U.MD.UI.picture.picnumber].style.display="none",e?(U.MD.UI.picture.picnumber++,U.MD.UI.picture.picnumber>U.MD.UI.picture.pics.length-1&&(U.MD.UI.picture.picnumber=0)):(U.MD.UI.picture.picnumber--,U.MD.UI.picture.picnumber<0&&(U.MD.UI.picture.picnumber=U.MD.UI.picture.pics.length-1)),U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].size&&(U.MD.UI.picture.focuspicsize=U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].size),U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].src&&(U.MD.UI.picture.focuspicsrc=U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].src),U.MD.UI.picture.pics[U.MD.UI.picture.picnumber].style.display="block",U.MD.UI.picture.originalSize=U.MD.UI.picture.getImgNaturalDimensions(U.MD.UI.picture.pics[U.MD.UI.picture.picnumber]),U.MD.UI.picture.DIVBOX.PICAREA.setAttribute("style",""),U.MD.UI.picture.checkHeight(),U.MD.UI.picture.rotatenum=0},U.MD.UI.picture.checkHeight=function(){var e=U.MD.UI.picture.originalSize[0]/U.MD.UI.picture.originalSize[1];U.MD.UI.picture.originalSize[1]>U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-40||U.MD.UI.picture.originalSize[0]>U.MD.UI.picture.DIVBOX.PICBOX.clientWidth?U.MD.UI.picture.DIVBOX.PICAREA.style.width=Math.floor((U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-40)*e)+"px":U.MD.UI.picture.DIVBOX.PICAREA.style.width=U.MD.UI.picture.originalSize[0]+"px",U.MD.UI.picture.DIVBOX.PICAREA.style.left=(U.MD.UI.picture.DIVBOX.PICBOX.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px",U.MD.UI.picture.DIVBOX.PICAREA.style.top=(U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px","object"==typeof U.MD.UI.picture.DIVBOX.USERPICS[0]?U.selectEl("#U_MD_UI_Picture_imgInfo")[0].innerText=U.MD.UI.picture.focuspicsrc.toLowerCase().split("/").splice(-1)[0]+"("+U.MD.UI.picture.originalSize[0]+"*"+U.MD.UI.picture.originalSize[1]+"px "+U.MD.UI.picture.focuspicsize+")":"string"==typeof U.MD.UI.picture.DIVBOX.USERPICS[0]&&(U.selectEl("#U_MD_UI_Picture_imgInfo")[0].innerText=U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].toLowerCase().split("/").splice(-1)[0]+"("+U.MD.UI.picture.originalSize[0]+"*"+U.MD.UI.picture.originalSize[1]+"px)"),U.selectEl("#U_MD_UI_Picture_r")[0].innerText=Math.round(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/U.MD.UI.picture.originalSize[1]*100)+"%"},U.MD.UI.picture.getImgNaturalDimensions=function(e){var t,i;if(e.naturalWidth)t=e.naturalWidth,i=e.naturalHeight;else{var n=new Image;n.src=e.src,t=n.width,i=n.height}return[t,i]},U.MD.UI.picture.drag=function(e,t){e.onmousedown=function(i){U.MD.UI.picture.mDown(e,t,i)}},U.MD.UI.picture.mDown=function(e,t,i){i=i||window.event;var n=i.clientX-e.offsetLeft,l=i.clientY-e.offsetTop;t.onmousemove=function(i){U.MD.UI.picture.mMove(e,t,n,l,i)},t.onmouseup=function(e){t.onmousemove=null,t.onmouseup=null},i.preventDefault?i.preventDefault():(e.ondragstart=function(){return!1},e.onselectstart=function(){return!1})},U.MD.UI.picture.mMove=function(e,t,i,n,l){l=l||window.event;var r=l.clientX-i,a=l.clientY-n
  3. ;r=U.MD.UI.picture.rotatenum%2==0?Math.min(t.clientWidth-t.clientWidth/8,r):Math.min(t.clientWidth-t.clientWidth/8-e.clientWidth/2+e.clientHeight/2,r),r=U.MD.UI.picture.rotatenum%2==0?Math.max(-e.clientWidth+t.clientWidth/8,r):Math.max(-e.clientWidth+t.clientWidth/8+e.clientWidth/2-e.clientHeight/2,r),a=U.MD.UI.picture.rotatenum%2==0?Math.min(t.clientHeight-t.clientHeight/8,a):Math.min(t.clientHeight-t.clientHeight/8+(e.clientWidth-e.clientHeight)/2,a),a=U.MD.UI.picture.rotatenum%2==0?Math.max(-e.clientHeight+t.clientHeight/8,a):Math.max(-e.clientHeight+t.clientHeight/8-(e.clientWidth-e.clientHeight)/2,a),e.style.left=r+"px",e.style.top=a+"px"},U.MD.UI.picture.wheel=function(){U.MD.UI.picture.DIVBOX.PICBOX.onmousewheel=function(){this.getWheelDalta()}.bind(this)},U.MD.UI.picture.getWheelDalta=function(e){function t(e){e.preventDefault?e.preventDefault():e.returnValue=!1}e=e||window.event;var i=0;e.wheelDelta?(i=e.wheelDelta/120,window.opera&&(i=-i)):e.detail&&(i=-e.detail/3),i>0?U.MD.UI.picture.changeSize(U.MD.UI.picture.scalingvalue):U.MD.UI.picture.changeSize(-U.MD.UI.picture.scalingvalue),t(event)},U.MD.UI.picture.changeSize=function(e){var t,i,n;if(i=U.MD.UI.picture.DIVBOX.PICAREA.clientHeight,n=U.MD.UI.picture.DIVBOX.PICAREA.clientWidth,t=U.MD.UI.picture.DIVBOX.PICAREA.clientWidth+e,!(t/U.MD.UI.picture.originalSize[0]*100<20&&t<200||(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight+e)/U.MD.UI.picture.originalSize[1]*100>1e3)){U.MD.UI.picture.DIVBOX.PICAREA.style.width=t+"px",U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop-(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight-i)/2+"px",U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft-e/2+"px",("Microsoft Internet Explorer"==navigator.appName&&"8."==navigator.appVersion.match(/8./i)||"Microsoft Internet Explorer"==navigator.appName&&"7."==navigator.appVersion.match(/7./i))&&U.MD.UI.picture.rotatenum%2!=0&&(U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/2-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/2+"px",U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/2-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth/2+"px");var l=U.MD.UI.picture.DIVBOX.PICAREA.clientHeight+U.MD.UI.picture.DIVBOX.PICAREA.offsetTop<=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/8||U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+U.MD.UI.picture.DIVBOX.PICAREA.offsetTop<=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/8&&U.MD.UI.picture.rotatenum%2!=0,r=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop>=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/8||Math.abs(U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2-U.MD.UI.picture.DIVBOX.PICAREA.offsetTop)<=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/8&&U.MD.UI.picture.rotatenum%2!=0,a=U.MD.UI.picture.DIVBOX.PICAREA.clientWidth+U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft<=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/8||U.MD.UI.picture.DIVBOX.PICAREA.clientHeight+(U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft+(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/2)<=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/8&&U.MD.UI.picture.rotatenum%2!=0,o=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft>=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth-U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/8||U.MD.UI.picture.DIVBOX.PICBOX.clientWidth-(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2-U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft<=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/8&&U.MD.UI.picture.rotatenum%2!=0;l&&(U.MD.UI.picture.rotatenum%2==0?U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop+(i-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop+(n-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px"),r&&(U.MD.UI.picture.rotatenum%2==0?U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop-(i-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop-(n-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px"),a&&(U.MD.UI.picture.rotatenum%2==0?U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft+(n-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft+(i-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px"),o&&(U.MD.UI.picture.rotatenum%2==0?U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft-(n-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft-(i-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px"),U.selectEl("#U_MD_UI_Picture_r")[0].innerText=Math.floor(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth/U.MD.UI.picture.originalSize[0]*100)+"%"}},Namespace.register("U.MD.UI.video"),U.MD.UI.video=function(e,t,i,n,l){var r=n||!1,a=null,o=null,c=!1,s=!1,d=U.MD.UI.video.appendEle(e,t,i,r,l);return U.MD.UI.video.addEvent(d,a,o,c,i,t,s),d},U.MD.UI.video.appendEle=function(e,t,i,n,l){var r={};return r.videoDiv=$$("div",{className:"U_MD_UI_video_VideoDiv",style:{width:t+"px",height:i+"px"}},l),r.video=$$("video",{src:e,className:"U_MD_UI_video_VideoMain",autoplay:n,preload:"auto"},r.videoDiv),r.controls=$$("div",{className:"U_MD_UI_video_VideoControls"},r.videoDiv),r.playPauseBtn=$$("div",{className:"U_MD_UI_video_PlayPauseButton U_MD_UI_video_PlayIcon"},r.controls),r.currentTimeDiv=$$("div",{className:"U_MD_UI_video_Time",innerHTML:"00:00"},r.controls),r.progress=$$("div",{className:"U_MD_UI_video_Progress"},r.controls),r.progressCurrentTime=$$("div",{className:"U_MD_UI_video_ProgressCurrentTime"},r.progress),r.progressCircle=$$("div",{className:"U_MD_UI_video_ProgressCircle"},r.progressCurrentTime),r.DurationDiv=$$("div",{className:"U_MD_UI_video_Time",innerHTML:"00:00",onselectstart:"return false;"},r.controls),r.soundControls=$$("div",{className:"U_MD_UI_video_SoundControls"},r.controls),r.soundProgress=$$("div",{className:"U_MD_UI_video_SoundProgress"},r.controls),r.soundProgressCurrent=$$("div",{className:"U_MD_UI_video_SoundProgressCurrent",style:{width:"100%"}},r.soundProgress),r.fullScreenBtn=$$("div",{className:"U_MD_UI_video_FullScreen"},r.controls),r},U.MD.UI.video.addEvent=function(e,t,i,n,l,r,a){e.playPauseBtn.onclick=function(t){U.MD.UI.playPauseBtnClick(t,e)},void 0!==e.videoDiv.onwebkitfullscreenchange?e.videoDiv.onwebkitfullscreenchange=function(){var t=U.MD.UI.video.fullscreenChange(a,l,r,e);a=t[0],l=t[1],r=t[2]}:void 0!==e.videoDiv.onfullscreenchange?e.videoDiv.onfullscreenchange=function(){var t=U.MD.UI.video.fullscreenChange(a,l,r,e);a=t[0],l=t[1],r=t[2]}:void 0!==e.videoDiv.onmozfullscreenchange&&(e.videoDiv.onmozfullscreenchange=function(){var t=U.MD.UI.video.fullscreenChange(a,l,r,e);a=t[0],l=t[1],r=t[2]}),e.fullScreenBtn.onclick=function(){U.MD.UI.video.fullscreenClick(a,e)},e.progressCircle.onmousedown=function(t){U.MD.UI.video.circleMove(t,n,e)},e.soundProgress.onmousedown=function(t){U.MD.UI.video.soundProgressMove(t,e,n)},e.progress.onmousedown=function(t){U.MD.UI.video.progressMove(t,e,n)},e.video.onpause=function(){e.playPauseBtn.className="U_MD_UI_video_PlayPauseButton U_MD_UI_video_PlayIcon",clearInterval(t)},e.video.onplay=function(){e.playPauseBtn.className="U_MD_UI_video_PlayPauseButton U_MD_UI_video_PauseIcon",t=U.MD.UI.video.setInterval(n,e)},e.video.oncanplay=function(){U.MD.UI.video.flushInfo(n,e.currentTimeDiv,e.DurationDiv,e.progressCurrentTime,e.soundProgressCurrent,e.video)},e.soundControls.onclick=function(){i=U.MD.UI.video.muteClick(e,i,n)},e.videoDiv.onclick=function(){}},U.MD.UI.video.displayControls=function(e,t){var i=e.target;i!==t.video&&i!==t.videoDiv||("none"===t.controls.style.display?t.controls.style.display="block":t.controls.style.display="none")},U.MD.UI.playPauseBtnClick=function(e,t){var i=e.target;"U_MD_UI_video_PlayPauseButton U_MD_UI_video_PlayIcon"===i.className?t.video.play():t.video.pause()},U.MD.UI.video.muteClick=function(e,t,i){return 0!==e.video.volume?(t=e.video.volume,e.video.volume=0,U.MD.UI.video.flushInfo(i,e.currentTimeDiv,e.DurationDiv,e.progressCurrentTime,e.soundProgressCurrent,e.video)):0===e.video.volume&&null!==t&&(e.video.volume=t,t=null,U.MD.UI.video.flushInfo(i,e.currentTimeDiv,e.DurationDiv,e.progressCurrentTime,e.soundProgressCurrent,e.video)),t},U.MD.UI.video.fullscreenClick=function(e,t){e?document.exitFullScreen?document.exitFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozExitFullScreen&&document.mozExitFullScreen():t.videoDiv.requestFullScreen?t.videoDiv.requestFullScreen():t.videoDiv.webkitRequestFullScreen?t.videoDiv.webkitRequestFullScreen():t.videoDiv.mozRequestFullScreen&&t.videoDiv.mozRequestFullScreen()},U.MD.UI.video.fullscreenChange=function(e,t,i,n){return e?(n.videoDiv.style.height=t+"px",n.videoDiv.style.width=i+"px",n.videoDiv.style.position="",n.videoDiv.style.top="",n.videoDiv.style.left="",n.videoDiv.style.zIndex=""):(n.videoDiv.style.height="100vh",n.videoDiv.style.width="100vw",n.videoDiv.style.position="absolute",n.videoDiv.style.top="0",n.videoDiv.style.left="0",n.videoDiv.style.zIndex="999"),e=!e,[e,t,i]},U.MD.UI.video.timeFormat=function(e){var t=parseInt(e%60),i=parseInt(parseInt(e)/60);return t<10&&(t="0"+t),i<10&&(i="0"+i),i+":"+t},U.MD.UI.video.flushInfo=function(e,t,i,n,l,r){e||(t.innerHTML=U.MD.UI.video.timeFormat(r.currentTime),i.innerHTML=U.MD.UI.video.timeFormat(r.duration),n.style.width=r.currentTime/r.duration*100+"%",l.style.width=100*r.volume+"%")},U.MD.UI.video.getScreenLeft=function(e){for(var t=e.offsetLeft,i=e.offsetParent;null!=i;)t+=i.offsetLeft,i=i.offsetParent;return t},U.MD.UI.video.setInterval=function(e,t){return setInterval(function(){U.MD.UI.video.flushInfo(e,t.currentTimeDiv,t.DurationDiv,t.progressCurrentTime,t.soundProgressCurrent,t.video)},500)},U.MD.UI.video.circleMove=function(e,t,i){var n=e,l=e.currentTarget,r=n.pageX,a=l.parentElement,o=a.parentElement;i.videoDiv.onmousemove=function(e){if(!(e.pageX-U.MD.UI.video.getScreenLeft(o)<0||e.pageX-U.MD.UI.video.getScreenLeft(o)>o.offsetWidth)){var t=e.pageX-r;!(a.offsetWidth+t>o.offsetWidth||a.offsetWidth+t<0)&&e.currentTarget.children[0].offsetWidth<=e.currentTarget.children[0].offsetWidth&&(a.style.width=(a.offsetWidth+t)/o.offsetWidth*100+"%",i.video.currentTime=(a.offsetWidth+t)/o.offsetWidth*i.video.duration),r=e.pageX}},i.videoDiv.onmouseup=function(){!1,i.videoDiv.onmousemove=function(){},i.videoDiv.onmouseup=function(){}}},U.MD.UI.video.soundProgressMove=function(e,t,i){e.preventDefault();var n=e,l=e.currentTarget,r=n.pageX,a=t.soundProgressCurrent,o=e.offsetX,c=l.offsetWidth;t.video.volume=o/c,U.MD.UI.video.flushInfo(i,t.currentTimeDiv,t.DurationDiv,t.progressCurrentTime,t.soundProgressCurrent,t.video),t.videoDiv.onmousemove=function(e){if(!(e.pageX-U.MD.UI.video.getScreenLeft(t.soundProgress)<0||e.pageX-U.MD.UI.video.getScreenLeft(t.soundProgress)>t.soundProgress.offsetWidth)){var i=e.pageX-r;a.offsetWidth+i>l.offsetWidth||a.offsetWidth+i<0||(a.style.width=(a.offsetWidth+i)/l.offsetWidth*100+"%",t.video.volume=a.offsetWidth/l.offsetWidth),r=e.pageX}},t.videoDiv.onmouseup=function(e){t.videoDiv.onmousemove=function(){},t.videoDiv.onmouseup=function(){}}},U.MD.UI.video.progressMove=function(e,t,i){if(e.preventDefault(),"U_MD_UI_video_ProgressCircle"!==e.target.className){var n=e,l=e.currentTarget,r=n.pageX,a=t.progressCurrentTime,o=e.layerX||e.offsetX,c=l.offsetWidth;t.video.currentTime=t.video.duration*(o/c),U.MD.UI.video.flushInfo(i,t.currentTimeDiv,t.DurationDiv,t.progressCurrentTime,t.soundProgressCurrent,t.video),t.videoDiv.onmousemove=function(e){if(!(e.pageX-U.MD.UI.video.getScreenLeft(t.progress)<0||e.pageX-U.MD.UI.video.getScreenLeft(t.progress)>t.progress.offsetWidth)){i=!0;var n=e.pageX-r;a.offsetWidth+n>t.progress.offsetWidth||a.offsetWidth+n<0||(a.style.width=(a.offsetWidth+n)/t.progress.offsetWidth*100+"%",t.video.currentTime=(a.offsetWidth+n)/t.progress.offsetWidth*t.video.duration),r=e.pageX}},t.videoDiv.onmouseup=function(){i=!1,U.MD.UI.video.flushInfo(i,t.currentTimeDiv,t.DurationDiv,t.progressCurrentTime,t.soundProgressCurrent,t.video),t.videoDiv.onmousemove=function(){},t.videoDiv.onmouseup=function(){}}}},Namespace.register("U.MD.UI.BTree"),U.MD.UI.BTree=function(e,t,i,n,l,r,a,o,c,s,d){U.MD.UI.BTree.jsonStartLeft(e,r[0],t),U.MD.UI.BTree.jsonStartRight(r[1],t,i,n,l,a,o,c,s,d)},U.MD.UI.BTree.treeCreate=function(e,t,i){for(var n=0;n<e.length;n++){var l=$$("ul",{className:"U_MD_UI_Tree_a "+e[n].parentID},t),r=$$("li",{id:e[n].id,parentid:e[n].parentid,className:"U_MD_UI_Tree_listyle",parentid:e[n].id,deep:e[n].deep},l),a=$$("img",{onerror:U.MD.C.imgError,src:e[n].img_url,className:"U_MD_UI_Tree_imgstyle"},r);$$("span",{innerHTML:e[n].name,className:"spanstyle"},r);l.style.display="none","1"==e[n].deep&&(l.style.display="block"),a.aa=!1;var o=document.getElementsByClassName("U_MD_UI_Tree_a "+e[n].parentID)[0];l.style.display=o.style.display,r.onclick=function(){if(i(this),o=document.getElementsByClassName("U_MD_UI_Tree_a "+this.parentid),!0===a.aa){a.aa=!1;for(var e=0;e<o.length;e++)o[e].style.display="none"}else{a.aa=!0;for(e=0;e<o.length;e++)o[e].style.display="block"}},e[n].child&&U.MD.UI.BTree.treeCreate(e[n].child,l,i)}},U.MD.UI.BTree.JsonSelect=function(e,t){for(var i=[],n=0;n<e.length;n++){if(0==t)return e;if(e[n].id==t)return i=e[n].child,i;if(e[n].child)var l=U.MD.UI.BTree.JsonSelect(e[n].child,t)}return l},U.MD.UI.BTree.DirectoryCreate=function(e,t,i,n,l,r,a,o,c,s,d){0==s?(i[1].style.display="none",i[2].style.display="none"):(i[2].style.display="none",i[s].style.display="block");var _="修改",p="删除";if(o&&c&&(_="",p=""),t[s].innerHTML="",i[s].parentID=n,i[s].deep=s+1,d&&(t[d].innerHTML=""),e)for(var u=0;u<e.length;u++){var D=$$("ul",{className:"U_MD_UI_Tree_styleul",parentid:e[u].parentID,deep:e[u].deep},t[s]),I=$$("li",{className:"U_MD_UI_Tree_styleli",innerHTML:e[u].name,parentid:e[u].id},D),M=$$("input",{type:"button",pid:e[u].id,parentid:e[u].parentID,innerHTML:_,className:"U_MD_UI_Tree_button"},D),m=$$("input",{type:"button",pid:e[u].id,parentid:e[u].parentID,innerHTML:p,className:"U_MD_UI_Tree_button1"},D);M.onclick=function(){r(this,t,i,n,l,r,a,o,c,s)},m.onclick=function(){l(this,t,i,n,l,r,a,o,c,s)},I.onclick=function(){d?U.MD.UI.BTree.DirectoryCreate(U.MD.UI.BTree.JsonSelect(e,this.parentid),t,i,this.parentid,l,r,a,o,c,d):2==s||U.MD.UI.BTree.DirectoryCreate(U.MD.UI.BTree.JsonSelect(e,this.parentid),t,i,this.parentid,l,r,a,o,c,1,2)}}var f=U.selectEl(".U_MD_UI_Tree_add");f[s]&&i[s].removeChild(f[s]);var h=$$("div",{className:"U_MD_UI_Tree_add",innerHTML:"添加新分类"},i[s]);h.onclick=function(){a(this,t,i,n,l,r,a,o,c,s)}},U.MD.UI.BTree.jsonAdd=function(e,t){var i=t.parentID;if("0"==i)return e[e.length]=t,e;for(var n=0;n<e.length;n++){if(e[n].id==i)return e[n].child?(e[n].child[e[n].child.length]=t,e):(e[n].child=[],e[n].child[e[n].child.length]=t,e);if(e[n].child){var l=U.MD.UI.BTree.jsonAdd(e[n].child,t);e[n].child=l}}return e},U.MD.UI.BTree.jsonStartA=function(e,t,i,n,l,r,a,o,c,s,d){json=[];for(var _=e,p=0;p<_.length;p++)U.MD.UI.BTree.jsonAdd(json,_[p]);r.innerHTML="",U.MD.UI.BTree.jsonStartRight(r,t,i,n,l,a,o,c,s,d)},U.MD.UI.BTree.jsonStartRight=function(e,t,i,n,l,r,a,o,c,s){var d=$$("ul",{className:"U_MD_UI_Tree_a "},e),_=$$("li",{className:"U_MD_UI_Tree_listyle",yid:"1"},d);$$("img",{onerror:U.MD.C.imgError,src:o,className:"U_MD_UI_Tree_imgstyle"},_),$$("span",{innerHTML:"目录管理",className:"U_MD_UI_Tree_spanstyle"},_);_.onclick=function(){t(this),U.MD.UI.BTree.DirectoryCreate(json,r,a,0,function(e,t,n,l,r,a,o,c,s,d){var _=i(e.pid);if(_){json=U.MD.UI.BTree.jsonDelete(json,e.pid);var p=U.selectEl("#"+e.pid)[0];p&&p.parentNode.remove(),1==d&&U.MD.UI.BTree.DirectoryCreate(U.MD.UI.BTree.JsonSelect(json,e.parentid),t,n,l,r,a,o,c,s,1,2),2==d&&U.MD.UI.BTree.DirectoryCreate(U.MD.UI.BTree.JsonSelect(json,e.parentid),t,n,l,r,a,o,c,s,2),0==d&&U.MD.UI.BTree.DirectoryCreate(json,t,n,l,r,a,o,c,s,0)}},function(e,t,i,l,r,a,o,c,s,d){var _=n(U.MD.UI.BTree.jsonSelectA(json,e.pid));json=U.MD.UI.BTree.jsonUpdate(json,_);var p=U.selectEl("#"+e.pid)[0];p&&(p.childNodes[0].src=_.img_url,p.childNodes[1].innerHTML=_.name),1==d&&U.MD.UI.BTree.DirectoryCreate(U.MD.UI.BTree.JsonSelect(json,e.parentid),t,i,l,r,a,o,c,s,1,2),2==d&&U.MD.UI.BTree.DirectoryCreate(U.MD.UI.BTree.JsonSelect(json,e.parentid),t,i,l,r,a,o,c,s,2),0==d&&U.MD.UI.BTree.DirectoryCreate(json,t,i,l,r,a,o,c,s,0)},function(e,i,n,r,a,o,c,s,d,_){var p={};p.parentID=e.parentNode.parentID,p.deep=e.parentNode.deep;var u,D=l(p);D&&(u=U.selectEl(".U_MD_UI_Tree_a")[1],u&&(u=0==D.parentID?U.selectEl(".U_MD_UI_Tree_a")[0].parentNode:U.selectEl("#"+D.parentID)[0].parentNode,_js=[],_js[0]=D,U.MD.UI.BTree.treeCreate(_js,u,t)),json=U.MD.UI.BTree.jsonAdd(json,D),1==_&&U.MD.UI.BTree.DirectoryCreate(U.MD.UI.BTree.JsonSelect(json,p.parentID),i,n,r,a,o,c,s,d,1,2),2==_&&U.MD.UI.BTree.DirectoryCreate(U.MD.UI.BTree.JsonSelect(json,p.parentID),i,n,r,a,o,c,s,d,2),0==_&&U.MD.UI.BTree.DirectoryCreate(json,i,n,r,a,o,c,s,d,0))},c,s,0)}},U.MD.UI.BTree.jsonStartLeft=function(e,t,i){json=[];for(var n=e,l=0;l<n.length;l++)U.MD.UI.BTree.jsonAdd(json,n[l]);t.innerHTML="",U.MD.UI.BTree.treeCreate(json,t,i)},U.MD.UI.BTree.jsonDelete=function(e,t){for(var i=0;i<e.length;i++){if(e[i].id==t)return e.splice(i,1),e;e[i].child&&(e[i].child=U.MD.UI.BTree.jsonDelete(e[i].child,t))}return e},U.MD.UI.BTree.jsonSelectA=function(e,t){for(var i=0;i<e.length;i++){if(e[i].id==t)return e[i];if(e[i].child){var n=U.MD.UI.BTree.jsonSelectA(e[i].child,t);if(n)return n}}return!1},U.MD.UI.BTree.jsonUpdate=function(e,t){for(var i=0;i<e.length;i++){if(e[i].id==t.id)return e[i]=t,e;if(e[i].child){var n=U.MD.UI.BTree.jsonUpdate(e[i].child,t);if(n)return e[i].child=n,e}}return!1},U.MD.UI.BTree.createID=function(e){for(var t=0,i=0;i<e.length;i++)parseInt(e[i].id)>t&&(t=parseInt(e[i].id));return t},Namespace.register("U.MD.UI.editor"),U.MD.UI.Editor=U.MD.UI.editor=function(e,t){return U.UF.DL.asynLoadCss({rel:"stylesheet",type:"text/css",href:"/css/Controls/Complex/Editor.css"}),U.MD.UI.editor.createEditor(e),U.UF.E.initEditor($(".editor",e)[0],t),U.MD.UI.editor.EditorEventBind(e),U.MD.UI.editor.operateJson.editor=U.selectEl(".editor",e)[0],U.MD.UI.editor.operateJson},U.MD.UI.editor.operateJson={loadContent:function(e){this.editor.focus(),U.UF.E.onpaste(null,this.editor,e)},getContent:function(){return this.editor.innerHTML}},U.MD.UI.editor.createEditor=function(e){e.innerHTML='<div class=\'toolbar\' style="width: 788px;background-color: #f5f5f5;border: 1px solid #c7d3e1;line-height: 0;padding: 6px;height: 25px;">\n <button class="last" style="float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/left.png\') no-repeat center;">\n </button>\n <button class="future" style="float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/right.png\') no-repeat center;">\n </button>\n <i style="display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;">\n\n </i>\n<div class=\'setFont\' style=\'float: left;margin: 0 3px;position: relative;padding:0px\'></div> <i style="display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;">\n\n </i>\n<div class=\'setSize\' style=\'float: left;margin: 0 3px;position: relative;padding:0px\'></div> <i style="display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;">\n\n </i>\n <label style="float: left;margin: 0 3px;position: relative;">\n <button class="pic" style="outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/pic.png\') no-repeat center;">\n </button>\n <input multiple accept=\'image/*\' type=\'file\' class=\'picUpload\' style=\'display: none;\' />\n </label>\n <label style="float: left;margin: 0 3px;position: relative;">\n <button class="attachment" style="outline: none;cursor: pointer;border: 1px solid transparent;width: 25px;height: 25px;background: url(/img/YS2017.png) no-repeat;background-position: -1054px -593.5px;"></button>\n <input multiple="" type="file" class="attachmentUpload" style="display: none;">\n </label>\n <i style="display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;">\n\n </i>\n <div style="float: left;margin: 0 3px;position: relative;padding:0px">\n <button class="fontColor" style="outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/fontColor.png\') no-repeat center;">\n </button>\n <div class=\'fontColorBar colorBar\' style=\'display:none;position: absolute;\'>\n </div>\n </div>\n <i style="display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;">\n\n </i>\n <div style="float: left;margin: 0 3px;position: relative;padding:0px">\n <button class="backgroundColor" style="outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/blockColor.png\') no-repeat center;">\n </button>\n <div class=\'backgroundColorBar colorBar\' style=\'display:none;position: absolute;\'>\n </div>\n </div>\n <i style="display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;">\n\n </i>\n <button class="bIcon" style="float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/strong.png\') no-repeat center;">\n </button>\n <button class="iIcon" style="float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/i.png\') no-repeat center;">\n </button>\n <button class="UIcon" style="float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/x.png\') no-repeat center;">\n </button>\n <button class="SIcon" style="float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/-S-.png\') no-repeat center;">\n </button>\n <i style="display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;">\n\n </i>\n <button class="textLeft" style="float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/textLeft.png\') no-repeat center;">\n </button>\n <button class="textCenter" style="float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/textCenter.png\') no-repeat center;">\n </button>\n <button class="textRight" style="float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/textRight.png\') no-repeat center;">\n </button>\n <i style="display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;" >\n\n </i>\n <button class="a" style="float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/a.png\') no-repeat center;">\n </button>\n <button class="b" style="float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/b.png\') no-repeat center;">\n </button>\n <button class="c" style="float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/c.png\') no-repeat center;">\n </button>\n </div>\n <div class="editor" contenteditable="true" style="width: 800px;min-height: 300px;border: 1px solid #E6E5E5;overflow: auto;">\n </div>',U.selectEl('input.picUpload[type="file"]',e)[0].onchange=function(){U.UF.E.picture(this,U.selectEl(".editor",e)[0])},U.selectEl('input.attachmentUpload[type="file"]',e)[0].onchange=function(){U.UF.E.attachment(this,U.selectEl(".editor",e)[0])}},U.MD.UI.editor.EditorEventBind=function(e){var t=U.MD.UI.Font();t.style.cssText+="vertical-align: super;";var i=U.MD.UI.WordSize();i.style.cssText+="vertical-align: super;",U.selectEl(".setFont",e).append(t),t.onchange=function(){U.UF.E.setRangeStyle({"font-family":t.value})},U.selectEl(".setSize",e).append(i),i.onchange=function(){U.UF.E.setRangeStyle({"font-size":i.value})},U.selectEl(".pic",e)[0].onclick=function(){U.selectEl(".picUpload",e)[0].click()},U.selectEl(".attachment",e)[0].onclick=function(){U.selectEl(".attachmentUpload",e)[0].click()},U.selectEl(".bIcon",e)[0].onclick=function(){U.UF.E.setRangeStyle({"font-weight":"bold"})},U.selectEl(".iIcon",e)[0].onclick=function(){U.UF.E.setRangeStyle({"font-style":"italic"})},U.selectEl(".UIcon",e)[0].onclick=function(){U.UF.E.setRangeStyle({"text-decoration":"underline"})},U.selectEl(".SIcon",e)[0].onclick=function(){U.UF.E.setRangeStyle({"text-decoration":"line-through"})},U.selectEl(".fontColor",e).bind("click",function(){"none"==$(".fontColorBar",e).css("display")&&(U.MD.UI.colorPicker($(".fontColorBar",e)[0],function(t){U.selectEl(".MD_ColorPicker",U.selectEl(".fontColorBar",e)[0]).remove(),U.selectEl(".fontColorBar",e).hide(),U.UF.E.setRangeStyle({color:t})}),U.selectEl(".fontColorBar",e).show())}),U.selectEl(".backgroundColor",e).bind("click",function(){"none"==$(".backgroundColorBar",e).css("display")&&(U.MD.UI.colorPicker($(".backgroundColorBar",e)[0],function(t){U.selectEl(".MD_ColorPicker",U.selectEl(".backgroundColorBar",e)[0]).remove(),U.selectEl(".backgroundColorBar",e).hide(),U.UF.E.setRangeStyle({backgroundColor:t})}),U.selectEl(".backgroundColorBar",e).show())}),U.selectEl(".a",e).bind("click",function(){U.UF.E.addHref()}),U.selectEl(".c",e).bind("click",function(){U.UF.E.clearStyle(U.UF.E.getRangeAt())}),U.selectEl(".textLeft",e).bind("click",function(){U.UF.E.setLineStyle({"text-align":"left"})}),U.selectEl(".textCenter",e).bind("click",function(){U.UF.E.setLineStyle({"text-align":"center"})}),U.selectEl(".textRight",e).bind("click",function(){U.UF.E.setLineStyle({"text-align":"right"})})},U.MD.UI.editor.Select=function(e,t,i,n){var l="";t.id&&(l=t.id)&&delete t.id;var r=$$("div",{id:l},n||null),a=$$("div",t,r),o=$$("div",{},a);$$("div",{style:{cssText:"border-width: 6px 4px; border-style: solid; border-color: rgb(166, 178, 192) transparent transparent; width: 0; position: absolute; right: 4px; top: 50%; margin-top: -3px"}},a);var c,s=$$("div",{datacontent:"",style:{cssText:"display: none;position: absolute; margin-top:-1px; min-width: 100%; max-width: 280px; max-height: 200px ;border: 1px solid silver; overflow-x: hidden; cursor: pointer;"}},r);for(var d in t.style&&!t.style.position&&(r.style.position="relative"),t.style&&!t.style.textIndent&&(o.style.textIndent="6px"),o.style.whiteSpace="pre",o.style.overflow="hidden",o.style.width=r.offsetWidth-15+"px",e)$$("div",{value:d,innerText:e[d],style:{cssText:"padding: 4px 6px; background: #fff"},onmouseover:function(){this.style.background="#ccc"},onmouseout:function(){this.style.background="#fff"},onclick:function(){o.innerText=this.innerText,U.UF.E.reSelectRange(c),i(this.value||this.innerText)}},s);for(var d in e){o.innerText=e[d];break}return o.style.lineHeight=parseInt(o.style.height)+"px",r.onclick=function(){var e=this.querySelector("div[datacontent]");U.UF.E.reSelectRange(c),"block"===e.style.display?e.style.display="none":e.style.display="block"},U.selectEl(document).bind("click",function(){"none"!=s.style.display&&(s.style.display="none"),$(".BD_BorderPicker")[0]&&"none"!=$(".BD_BorderPicker")[0].style.display&&(U.selectEl(".BD_BorderPicker")[0].style.display="none")},!1),U.selectEl(r).bind("click",function(e){U.UF.EV.stopBubble(e)}),r.onmousedown=function(){c=U.UF.E.getRangeAt()},r},Namespace.register("U.MD.UI.excel"),Namespace.register("U.MD.R"),U.MD.R.data={PID:"",AID:"",URL:"",PageIndex:1,PageSize:20,AllCount:"",CB:null},U.MD.R.reply=function(e){U.MD.R.login.cookieLogin(function(){var t=e.type,i=e.el,n=e.cb;U.MD.R.data.PID=e.pid,U.MD.R.data.AID=U.MD.R.reply.getUrlHash(),U.MD.R.data.URL=U.MD.R.reply.getUrl(),U.MD.R.data.CB=n,t||(i=new U.UF.UI.form("",$$("div"),{style:{width:"800px",height:"800px"}}).content),U.MD.R.reply.init(i),U.UF.DL.asynLoadCss({href:"/css/Controls/Basic/Picture.css",type:"text/css",rel:"stylesheet"}),U.UF.DL.asynLoadJs({type:"text/javascript",src:"/js/Controls/Basic/Picture.js"})})},U.MD.R.reply.init=function(e){var t=U.MD.R.data.PageIndex,i=U.MD.R.data.PageSize;U.MD.R.initPrintHtml(e),U.MD.R.getReplyData(t,i,function(e){U.MD.R.data.AllCount=e[0][0]?Math.ceil(e[0][0].allcount/U.MD.R.data.PageSize):"",U.MD.R.printComment($("#U_MD_R_content_user_comment")[0],1,e,!1,!1,!1),U.MD.R.initLoadMoreBtn(e[0])})},U.MD.R.reply.getUrl=function(){return window.location.href},U.MD.R.reply.getUrlHash=function(){return U.UF.EC.SparkMD5.hash(window.location.href)},U.MD.R.getReplyData=function(e,t,i){U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Reply","test",U.MD.R.data.AID,"1","",e,t],function(e){i&&i(e.value)})},U.MD.R.initPrintHtml=function(e){var t,i,n,l,r,a,o,c,s,d,_,p,u,D=e;t=$$("div",{className:"U_MD_R_comment"},D),i=$$("div",{className:"U_MD_R_content"},t),n=$$("div",{className:"U_MD_R_content_operation"},i),l=$$("div",{className:"U_MD_R_content_operation_userhead U_MD_R_Reply_Header"},n),r=$$("img",{className:"img",src:"/img/UserHead/UseHead.jpg",onerror:function(){this.src="/img/UserHead/UseHead.jpg"}},l),a=$$("div",{className:"U_MD_R_content_operation_right",style:{width:"calc(100% - 40px - 20px )"}},n),U.selectEl(a).attr({"data-RPID":null,"data-RD":1,"data-RPUID":null}),o=$$("div",{innerHTML:"登录/注册",className:"U_MD_R_content_operation_userlogin U_MD_R_Reply_Name"},a),US.userInfo.userid?(o.innerHTML=US.userInfo.username,r.src="http://fs.1473.cn/"+US.userInfo.UserThumbnailImageHead):o.onclick=function(){U.MD.R.login()},c=$$("div",{id:"editorbox",className:"U_MD_R_Reply_Content",contenteditable:"true",style:{"min-height":"100px",background:"#fff",border:"1px solid black"}},a);var I=document.documentElement.scrollTop;U.UF.E.initEditor(c),document.documentElement.scrollTop=I,s=$$("div",{className:"U_MD_R_content_operation_right_bottom"},a),$$("div",{className:"U_MD_R_content_operation_right_bottom_emoji",onclick:function(){U.UF.EV.stopBubble(),
  4. U.MD.UI.face(this,U.selectEl("#editorbox")[0]),U.selectEl("#U_MD_UI_face").css({position:"relative",height:"140px","overflow-y":"scroll",top:"-150px",width:"450px",display:"block"})}},s),d=$$("div",{className:"U_MD_R_content_operation_right_bottom_picturewarp"},s),$$("img",{src:"/img/reply/img.png"},d),_=$$("input",{type:"file"},d),p=$$("div",{className:"U_MD_R_content_operation_right_bottom_release",innerHTML:"发表评论"},s),p.onclick=function(){""!=$(".U_MD_R_Reply_Content")[0].textContent||""!=U.selectEl(".U_MD_R_Reply_Content")[0].innerHTML?U.MD.R.release(a,1,!1,1):U.alert("评论不能为空!")},u=$$("div",{className:"U_MD_R_content_operation_right_bottom_imgloadbox U_MD_R_Reply_Image"},a),$$("div",{className:"U_MD_R_content_comment",id:"U_MD_R_content_user_comment"},i),_.onchange=function(){U.MD.R.uploadImages(this,u)},U.MD.R.data.CB&&U.MD.R.data.CB()},U.MD.R.initLoadMoreBtn=function(e){var t=$$("div",{className:"U_MD_R_content_loading"},U.selectEl(".U_MD_R_comment")[0]);e.length>0&&U.MD.R.data.PageIndex<U.MD.R.data.AllCount&&(t.innerHTML="点击加载更多评论",t.onclick=function(){var e=++U.MD.R.data.PageIndex,i=U.MD.R.data.PageSize;U.MD.R.data.PageIndex<=U.MD.R.data.AllCount?U.MD.R.getReplyData(e,i,function(e){U.MD.R.data.AllCount=Math.ceil(e[0][0].allcount/U.MD.R.data.PageSize),U.MD.R.printComment($("#U_MD_R_content_user_comment")[0],1,e,!1,!1,!1)}):U.selectEl(t).hide()})},U.MD.R.printComment=function(e,t,i,n,l,r){var a=U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Reply","Reply_SelectTypeReplyEnable",U.MD.R.data.PID]);if(1==a.value[0].ProjectReplyEnable)for(var o,c=e,s=t,d=i,_=n,p=l,u=r,D=0;D<i[0].length;D++)o=r?i[0][D].TopReplyNum:U.Json.select(d[2],{ReplyID:d[0][D].ReplyID}).length>0?U.Json.select(d[2],{ReplyID:d[0][D].ReplyID})[0].AllReplyNum:"0",U.MD.R.printCommentHtml(c,s,{rid:d[0][D].ReplyID,rpid:d[0][D].ReplyParentID,deep:d[0][D].ReplyDeep,topid:d[0][D].ReplyID,uid:d[0][D].UserID,un:d[0][D].UserName,tx:d[0][D].ReplyUserThumbnailImageHead,time:d[0][D].ReplyAddTime,content:d[0][D].ReplyContent,shownum:o,likesnum:2==s?U.Json.select(d[4],{ReplyID:d[0][D].ReplyID})[0]:U.Json.select(d[1],{ReplyID:d[0][D].ReplyID})[0]},_,p,u);else{var I=$$("div",{className:"U_MD_R_content_loading"},U.selectEl(".U_MD_R_comment")[0]);I.innerHTML="该评论系统已关闭",U.selectEl("#U_MD_R_content_loading")[0].innerHTML=""}},U.MD.R.viewComment=function(e,t){if(US.userInfo.userid){var i,n,l,r,a,o=e,c=t;i=new U.UF.UI.form("",$$("div",{style:{padding:"20px"}}),{style:{width:"800px",height:"600px"}}),U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Reply","Reply_SelectThisReply",o],function(e){n=e.value,U.MD.R.printComment(i.content,2,n,!0,!0,!0),c&&U.selectEl(i.content).find(".U_MD_R_content_box_content_edit").show(),l=$$("div",{className:"U_MD_R_content_warp_box"},i.content);for(var t=0;t<n[1].length;t++){r=U.MD.R.printCommentHtml(l,2,{rid:n[1][t].ReplyID,rpid:n[1][t].ReplyParentID,deep:n[1][t].ReplyDeep,topid:n[1][t].ReplyTopID,uid:n[1][t].UserID,tx:n[1][t].ReplyUserThumbnailImageHead,un:n[1][t].UserName,time:n[1][t].ReplyAddTime,content:n[1][t].ReplyContent,likesnum:U.Json.select(n[3],{ReplyID:n[1][t].ReplyID})[0]},!1,!0,!0),a=$$("div",{className:"U_MD_R_content_warp_box"},r),U.selectEl(a).attr({"data-replyid":n[1][t].ReplyID});for(var o=0;o<n[2].length;o++)n[1][t].ReplyID==n[2][o].ReplyParentID&&U.MD.R.printCommentHtml(a,3,{rid:n[2][o].ReplyID,rpid:n[2][o].ReplyParentID,deep:n[2][o].ReplyDeep,topid:n[2][o].ReplyTopID,uid:n[2][o].UserID,tx:n[2][o].ReplyUserThumbnailImageHead,un:n[2][o].UserName,time:n[2][o].ReplyAddTime,content:n[2][o].ReplyContent,likesnum:U.Json.select(n[3],{ReplyID:n[2][o].ReplyID})[0],replyinfo:{uid:n[2][o].uid,un:n[2][o].un,tx:n[2][o].tx}},!1,!0,!0)}})}else U.Alert("请先登录")},U.MD.R.printCommentHtml=function(e,t,i,n,l,r){var a,o,c,s,d,_,p,u,D,I,M,m,f,h,g,y,v,x,b,E,C,T,R=i,B=e,P=t,k=R.rid,w=R.rpid,A=R.deep,F=R.topid,N=R.uid,S=R.tx,H=R.un,L=R.time,X=R.content,O=R.likesnum,V=R.shownum,z=(R.replyinfo&&R.replyinfo.uid,R.replyinfo?R.replyinfo.un:""),W=(R.replyinfo&&R.replyinfo.tx,n),j=r;if(a=$$("div",{className:"U_MD_R_content_box"}),W?U.selectEl(B).append(a,0,U.selectEl(B)[0].firstChild):U.selectEl(B).append(a),o=$$("div",{className:"U_MD_R_content_box_warp"},a),U.selectEl(o).attr({"data-rid":k,"data-RPID":w,"data-RD":A,"data-RBID":F,"data-RPUID":N}),c=$$("div",{className:"U_MD_R_content_box_userhead"},o),$$("img",{src:S,onerror:"U.MD.R.imgError(this)"},c),s=$$("div",{className:"U_MD_R_content_box_content",style:{width:"calc(100% - 40px - 20px )"}},o),d=$$("div",{className:"U_MD_R_content_box_content_top"},s),_=$$("div",{className:"U_MD_R_content_box_content_top_name",innerHTML:H},d),3==P&&(_.innerHTML=H+"回复@"+z),$$("div",{className:"U_MD_R_content_box_content_top_time",innerHTML:L},d),p=$$("div",{className:"U_MD_R_content_box_content_text",innerHTML:X},s),$(p).find("img").length>0&&(U.selectEl(p).find("img")[0].onclick=function(){U.MD.UI.picture([this.src],0),U.selectEl("#U_MD_UI_PictureForm").css("position","fixed"),U.UF.F.topWindow($("#U_MD_UI_PictureForm")[0],!0)}),u=$$("div",{className:"U_MD_R_content_box_content_bottom"},s),D=$$("div",{className:"U_MD_R_content_box_content_bottom_likeswarp"},u),D.onclick=function(){U.MD.R.like(this,k,US.userInfo.userid)},I=$$("img",{src:"/img/reply/NOFabulous.png"},D),M=$$("div",{className:"U_MD_R_content_box_content_bottom_likeswarp_text",innerHTML:0},D),O&&(M.innerHTML=O.ReplyNum,U.A.Request("http://cd.1473.cn/net",["db.1473.cn","UseStudio_Reply","Reply_SelectRepeatLikes_Moblie",k,US.userInfo.userid],function(e){1==e.value[0].mode?I.src="/img/reply/NOFabulous.png":0==e.value[0].mode?I.src="/img/reply/Fabulous.png":I.src="/img/reply/NOFabulous.png"})),m=$$("div",{className:"U_MD_R_content_box_content_bottom_replywarp"},u),m.onclick=j?function(){U.MD.R.subsetReply(this)}:function(){U.MD.R.viewComment(k,!0)},$$("img",{src:"/img/reply/reply.png"},m),$$("div",{innerHTML:"回复",className:"U_MD_R_content_box_content_bottom_replywarp_text"},m),1==P&&(f=$$("div",{className:"U_MD_R_content_box_content_bottom_showmorewarp"},u),$$("img",{src:"/img/reply/list.png"},f),h=$$("div",{className:"U_MD_R_content_box_content_bottom_showmore_text"},f),j?(h.className="U_MD_R_content_box_content_bottom_showmore_text U_MD_R_content_box_content_bottom_showmore_text_secondary",h.innerHTML=V?"共有(<span>"+V+"</span>)条评论":"没有评论(<span>0</span>)"):(h.className="U_MD_R_content_box_content_bottom_showmore_text U_MD_R_content_box_content_bottom_showmore_text_important",h.innerHTML=V?"查看更多(<span>"+V+"</span>)":"查看更多(<span>0</span>)",f.onclick=function(){U.MD.R.viewComment(k,!1)})),1==P&&!r&&U.selectEl(".U_MD_R_content_loading")[0]&&(U.MD.R.data.PageIndex<U.MD.R.data.AllCount?U.selectEl(".U_MD_R_content_loading")[0].innerHTML="点击加载更多评论":U.selectEl(".U_MD_R_content_loading").hide()),2==P||3==P||1==P&&r)return y=$$("div",{className:"U_MD_R_content_box_content_edit",style:{display:"none"}},s),_replyinput=$$("div",{className:"U_MD_R_Reply_Content",contenteditable:"true"},y),v=$$("div",{className:"U_MD_R_content_operation_right_bottom"},y),$$("div",{className:"U_MD_R_content_operation_right_bottom_emoji",onclick:function(){U.UF.EV.stopBubble(),U.MD.UI.face(this,_replyinput),U.selectEl(this)[0].append($("#U_MD_UI_face")[0]),U.selectEl("#U_MD_UI_face").css({position:"relative",height:"140px","overflow-y":"scroll",top:"-150px",width:"450px",display:"block"})}},v),x=$$("div",{className:"U_MD_R_content_operation_right_bottom_picturewarp"},v),$$("img",{src:"/img/reply/img.png"},x),b=$$("input",{type:"file"},x),b.onchange=function(){U.MD.R.uploadImages(this,C)},E=$$("div",{className:"U_MD_R_content_operation_right_bottom_release",innerHTML:"发表评论"},v),E.onclick=function(){1==P?g=2:2==P?g=3:3==P&&(g=4),U.MD.R.release(o,P,!1,g)},C=$$("div",{className:"U_MD_R_content_operation_right_bottom_imgloadbox U_MD_R_Reply_Image"},y),3!=P&&(T=$$("div",{className:"U_MD_R_content_comment"},a)),T},U.MD.R.uploadImages=function(e,t){var i,n,l=t,r=/.*(jpg|png|gif|jpeg|JPG|PNG|GIF|JPEG)$/;U.selectEl(l)[0].innerHTML="",i=$$("div",{},l),$$("img",{src:"/img/Reply/loading.gif",style:{width:"100px",height:"100px","margin-right":"10px"}},i),U.UF.UP.inputUpload([e],"http://disk.1473.cn/USUpfile.ashx?typename=UseStudioEditor&UserId=FA92AAC5-4134-449F-9659-0DC12F4F68E9",function(e){n=e.value[0].split(".")[1],n.match(r)?(U.selectEl(i).remove(),i=$$("div",{className:"U_MD_R_content_operation_right_bottom_imgloadbox_warp"},l),$$("img",{src:"http://fs.1473.cn/"+e.value[0]},i),$$("div",{className:"closebtn",onclick:"U.MD.R.uploadImages.close(this)"},i),U.alert("上传成功")):U.alert("请上传图片文件")},[])},U.MD.R.uploadImages.close=function(e){U.selectEl(e).Parent().remove()},U.MD.R.subsetReply=function(e){var t=U.selectEl($(e).Parent(2)).find(".U_MD_R_content_box_content_edit");"block"==t[0].style.display?t.hide():t.show()},U.MD.R.release=function(e,t,i,n){if(US.userInfo.userid){var l=e,r=t,a=i,o=n,c=U.selectEl(l).find(".U_MD_R_Reply_Content")[0],s=U.selectEl(l).find(".U_MD_R_Reply_Image"),d=US.userInfo.userid,_=US.userInfo.username,p="http://fs.1473.cn/"+US.userInfo.UserImageHead;if(""!=c.innerHTML.trim()||s.find("img").length>0){var u=Guid.newGuid(),D=U.selectEl(e).attr("data-rid"),I=U.MD.R.data.PID,M=U.MD.R.data.AID,m="",f=US.userInfo.RegisterIP,h=U.MD.R.data.URL,g=null,y=U.selectEl(e).attr("data-rd"),v=(U.selectEl(e).attr("data-rbid"),U.selectEl(e).attr("data-rpuid")),x=1;1==n?y=1:2==n||3==n?y=parseInt($(e).attr("data-rd"))+1:(y=3,D=U.selectEl(e).attr("data-rpid")),m=$(s).find("img").length>0?c.innerHTML.trim()+s.find("img")[0].outerHTML:c.innerHTML,U.A.Request("http://cd.1473.cn/net",["db.1473.cn","UseStudio_Reply","Reply_InsertReply",u,D,I,M,d,_,p,m,f,h,g,y,v,x,U.MD.R.getNowFormatDate()],function(e){var t,i,n=e.value[0],s=U.selectEl("div[data-rid='"+n.ReplyParentID+"']").find(".U_MD_R_content_box_content_bottom_showmore_text_important span")[0];U.selectEl("div[data-rid='"+n.ReplyParentID+"']").find(".U_MD_R_content_box_content_bottom_showmore_text_secondary span")[0];U.selectEl(l).find(".U_MD_R_Reply_Content")[0].innerHTML="",U.UF.E.initEditor($(l).find(".U_MD_R_Reply_Content")[0]),U.selectEl(l).find(".U_MD_R_Reply_Image")[0].innerHTML="",1==o?(i=!1,t=!0,l=U.selectEl("#U_MD_R_content_user_comment")[0]):(i=!0,_val=s.innerText,2==o&&(l=U.selectEl(l).Parent().nextSibling,r=2,t=!0),3==o&&(l=$($(l)[0].nextSibling).find(".U_MD_R_content_warp_box").length>0?U.selectEl($(l)[0].nextSibling).find(".U_MD_R_content_warp_box"):$$("div",{className:"U_MD_R_content_warp_box"},U.selectEl($(l)[0].nextSibling)[0]),r=2),4==o&&(l=U.selectEl($(l).Parent()).Parent(),r=3),s.innerText=++_val,U.selectEl($(c).Parent()).hide());U.MD.R.printCommentHtml(l,r,{rid:n.ReplyID,rpid:n.ReplyParentID,deep:n.ReplyDeep,topid:n.ReplyTopID,uid:n.UserID,tx:n.ReplyUserThumbnailImageHead,un:n.UserName,time:U.MD.R.getNowFormatDate()+".0",content:n.ReplyContent,replyinfo:{uid:n.uid,un:n.un,tx:n.tx}},t,a,i);U.alert("评论成功")})}else U.alert("请输入评论内容")}else U.Alert("请先登录")},U.MD.R.like=function(e,t,i){if(US.userInfo.userid){var n=e,l=t,r=i;U.A.Request("http://cd.1473.cn/net",["db.1473.cn","UseStudio_Reply","Reply_SelectRepeatLikes",l,r],function(e){var t=U.selectEl(n).find("img")[0],i=U.selectEl(n).find(".U_MD_R_content_box_content_bottom_likeswarp_text")[0],l=parseInt(i.innerHTML);0==e.value[0].mode?(t.src="/img/reply/NOFabulous.png",i.innerHTML=--l):(t.src="/img/reply/Fabulous.png",i.innerHTML=++l)})}else U.Alert("请先登录")},U.MD.R.imgError=function(e){U.selectEl(e)[0].src="/img/UserHead/UseHead.jpg"},U.MD.R.login=function(){$("#U_MD_HomeC_Pop")[0]?U.UF.F.windowTopCenter($("#U_MD_HomeC_Pop")[0]):(U.UF.CD.loadPageCrossDomain(function(){}),U.MD.U.L.setLoginCallBack(function(){U.MD.R.login.cb()}))},U.MD.R.login.cookieLogin=function(e){U.UF.Cookie.get("usestudiosso")&&U.UF.Cookie.get("usestudiosso","userid")[0]?U.UF.CD.loadPageCrossDomain(function(){U.MD.U.L.loginCallBack=function(){e&&e(),U.selectEl(".U_MD_R_content_operation_userhead img")[0].src="http://fs.1473.cn/"+US.userInfo.UserThumbnailImageHead,U.selectEl(".U_MD_R_content_operation_userlogin")[0].innerHTML=US.userInfo.username}}):e&&e()},U.MD.R.login.cb=function(){U.selectEl(".U_MD_R_content_operation_userhead img")[0].src="http://fs.1473.cn/"+US.userInfo.UserThumbnailImageHead,U.selectEl(".U_MD_R_content_operation_userlogin")[0].innerHTML=US.userInfo.username},U.MD.R.getNowFormatDate=function(){var e=new Date,t="-",i=":",n=e.getMonth()+1,l=e.getDate();n>=1&&n<=9&&(n="0"+n),l>=0&&l<=9&&(l="0"+l);var r=e.getFullYear()+t+n+t+l+" "+e.getHours()+i+e.getMinutes()+i+e.getSeconds();return r},Namespace.register("U.MD.UI.table"),U.MD.UI.table=function(e,t,i,n){U.MD.UI.table.thead(e,t,i,n)},U.MD.UI.table.thead=function(e,t,i,n,l,r){var a,o,c,s;for(var d in l||(l=1,r=e.length),a=$$("table",{style:{"text-align":"center",position:"relative",width:" 100%","border-collapse":" collapse","border-width":" 1px","border-style":" solid","border-color":" rgb(213, 213, 213)","border-image":" initial",display:"table"}},n),o=$$("thead",{},a),c=$$("tr",{},o),t)"object"==typeof t[d]?$$("th",{innerHTML:t[d].name,style:{cssText:i[d],padding:"10px 0","font-weight":"normal",border:"1px solid #d5d5d5"},id:"th"},c):$$("th",{innerHTML:t[d],style:{cssText:i[d],padding:"10px 0","font-weight":"normal",border:"1px solid #d5d5d5"},id:"th"},c);return s=$$("tbody",{style:{cssText:"width:100%;"},id:"tbody"},a),U.MD.UI.table.tbody(s,e,t,i,l,r),s},U.MD.UI.table.tbody=function(e,t,i,n,l,r){for(var a,o,c,s=(l-1)*r;s<l*r&&s<t.length;s++)for(var d in a=s%2!=0?$$("tr",{style:{cssText:"background-color: #FFF;"},id:"tr"},e):$$("tr",{style:{cssText:"background-color: #dde4ee;"},id:"tr"},e),i)if(o=$$("td",{id:"td"},a),i[d].content)for(var _=0;_<i[d].content.length;_++)c=U.MD.UI.table.printDiv(o,i[d].content[_]),i[d].content[_].onclick&&U.MD.UI.table.onclick(c,t[s],i[d].content[_].onclick);else c=$$("div",{innerHTML:t[s][d],style:{overflow:"hidden",cssText:n[d]}},o),i[d].id&&(c.id=t[s][i[d].id])},U.MD.UI.table.pageTable=function(e,t,i,n,l,r){var a=$$("div",{style:{left:"0px",right:"0px",width:"100%",margin:"0 auto",top:"200px"}},r),o=$$("div",{},a),c=U.MD.UI.table.thead(e,t,i,o,l,n),s=$$("div",{style:{width:"650px",margin:"20px auto 0 auto"}},a);new U.UF.P.page(s,e.length,n,l,function(l){U.MD.UI.table.delChild(c),U.MD.UI.table.tbody(c,e,t,i,l,n)})},U.MD.UI.table.delChild=function(e){for(var t=e.children.length-1;t>=0;t--)e.removeChild(e.children[t])},U.MD.UI.table.onclick=function(e,t,i){e.onclick=function(){i(t)}},U.MD.UI.table.printDiv=function(e,t){var i;if("string"==typeof t.name&&(i=$$("div",{innerHTML:t.name},e)),"object"==typeof t.name){var n=t.name.cloneNode(!0);e.appendChild(n),i=n}return i},Namespace.register("U.MD.UI.Tree"),U.MD.UI.Tree=function(e,t,i,n){json=[];for(var l=e,r=0;r<l.length;r++)U.MD.UI.Tree.jsonAdd(json,l[r]);t.innerHTML="",U.MD.UI.Tree.treeCreate(json,t,i),t.oncontextmenu=function(e){e.preventDefault()},t.onmousedown=function(e){2==e.button&&n(e,i)}},U.MD.UI.Tree.treeCreate=function(e,t,i){for(var n=0;n<e.length;n++){var l=$$("ul",{className:"U_MD_UI_Tree_a "+e[n].parentID},t),r=$$("li",{id:e[n].id,parentid:e[n].parentid,className:"U_MD_UI_Tree_listyle",parentid:e[n].id,deep:e[n].deep},l),a=$$("img",{onerror:U.MD.C.imgError,src:e[n].img_url,className:"U_MD_UI_Tree_imgstyle"},r);$$("span",{innerHTML:e[n].name,className:"spanstyle"},r);l.style.display="none","1"==e[n].deep&&(l.style.display="block"),a.aa=!1;var o=document.getElementsByClassName("U_MD_UI_Tree_a "+e[n].parentID)[0];l.style.display=o.style.display,r.onclick=function(){if(i(this),o=document.getElementsByClassName("U_MD_UI_Tree_a "+this.parentid),!0===a.aa){a.aa=!1;for(var e=0;e<o.length;e++)o[e].style.display="none"}else{a.aa=!0;for(e=0;e<o.length;e++)o[e].style.display="block"}},e[n].child&&U.MD.UI.Tree.treeCreate(e[n].child,l,i)}},U.MD.UI.Tree.jsonAdd=function(e,t){var i=t.parentID;if("0"==i)return e[e.length]=t,e;for(var n=0;n<e.length;n++){if(e[n].id==i)return e[n].child?(e[n].child[e[n].child.length]=t,e):(e[n].child=[],e[n].child[e[n].child.length]=t,e);if(e[n].child){var l=U.MD.UI.Tree.jsonAdd(e[n].child,t);e[n].child=l}}return e},U.MD.UI.Tree.rightOnclick=function(e,t){var i=$$("li",{className:"U_MD_UI_Tree_rightli",innerHTML:"新建文件夹",parentid:t.path[1].parentid,deep:parseInt(t.path[1].deep)+1},e),n=$$("li",{className:"U_MD_UI_Tree_rightli",innerHTML:"重命名",parentid:t.path[1].parentid,deep:parseInt(t.path[1].deep)+1},e),l=$$("li",{className:"U_MD_UI_Tree_rightli",innerHTML:"删除",parentid:t.path[1].parentid,deep:parseInt(t.path[1].deep+1)},e),r=[];return r[0]=i,r[1]=n,r[2]=l,r},U.MD.UI.Tree.createID=function(e){for(var t=0,i=0;i<e.length;i++)parseInt(e[i].id)>t&&(t=parseInt(e[i].id));return t},Namespace.register("U.MD.UI.txt");