函数回调(n,t,i){document.forms[0].year.value=n;document.forms[0].month.value=getMonthName(t+1);document.forms[0].day.value=i}函数createClickFunction(n){function t(t){for(var u=“currentselected”,i=WP.Events.getThis(t),r;i.nodeName.toUpperCase()!=“TD”;)i=i.parentNode;if(r=i.id | i.getAttribute(“name”),r=“calnext”)return\u dateChooser.drawNextMonth(),WP.Events.cancelEvent(t),WP.Events.preventDefault(t),!1;if(r==“calprev”)return\u dateChooser.drawPreviousMonth(),WP.Events.cancelEvent(t),WP.Events.preventDefault(t),!1;if(r==“calcancel”){\u dateChooser.clearCalendar();return}return\u dateChooser.date=r.date=r.replace(“cal”),$afe.select”(“.receive”).removeClass”((u) ,$afe.jq(i).addClass(u),n.call(_dateChooser,_dateChooser.year,_dateChooser.month,r.replace(“cal”),_dateChooser.clearCalendar(),WP.Events.cancelEvent(t),WP.Events.preventDefault(t),!1}返回t}函数日期选择器(n,t,i,r,u){e=“UI.Calendar”,f=this;f.trigger=n;f.callback=t;f.input=u;f.filter=i=i;f.return=1240}函数;r&&typeof r.getYear==“函数”?f.today=r:typeof r==“字符串”?(f.today=newdate(r),isNaN(f.today)&&(f.today=newdate)):f.today=newdate;f.month=f.today.getMonth();f.year=f.today.getFullYear();f.calendar=null;f.clickFunction=createClickFunction(t);f.hoverText=$$WP.Strings.get(“选择工具提示”,e);f.hoverTextDisabled=$$WP.Strings.get(“NotAvailableTooltip”,e)}函数isInCalendar(n){for(var t=n,i=0;t&&i<8;t=t.parentNode,i++)if(t&&t.id&&t.toLowerCase()==“calendar”)返回!0;返回!1}函数lo(n){for(var t=WP.Events.getThis(n);t.node.toUpperCase()=“TD”;)t=t.parentNode;$afe.jq(=“calendar”){{var r=WP.Events.getThis(i);if(t)while(r.nodeName.toUpperCase()!=“DIV”)r=r.parentNode;else while(r.nodeName.toUpperCase()!=“TD”)r=r.parentNode;$afe.jq(r).addClass(!$afe.jq(r).hasClass(“ctrl”)| n)和&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&(u dateChooser.focusOn)、srcElement:document.getElementById(\u dateChooser.focusOn)}、\u dateChooser.focusOn=r.id}函数restoreHi(n){var i=WP.Events.getThis(n)、t;i&&i.className!=“日历”&!isInCalendar(i)&(t=(t=“cal”+\u dateChooser.focusOn&&t!=\u dateChooser.focusOn&&t!=“dateChooser.focusOn&&t=”日期选择器&&_dateChooser.year===\u dateChooser.today.getFullYear()&&document.getElementById(t).firstChild.tagName?document.getElementById(t).firstChild.focus():(t=document.getElementById(\u dateChooser.focusOn),t.firstChild&&t.firstChild.blur(),lo({目标:t,srcElement:t}))})函数{removeCalendar(){n=$afe.select('var n=$afe.select(“#日历”);n.length>0&&(WP.Events.removeListener(document.body,“click”,removeCalendar),WP.Events.removeListener(document.body,“mouseover”,restoreHi),accessibilityRestorePage(),n.remove(),_dateChooser=null)}函数removeCalendar(n){var t=WP.Events.getThis(n);t&&t.className!=“日历”&!isInCalendar(t)&&u removeCalendar()}函数keyOnPrevMonth(n){(n.keyCode==9)返回n.shiftKey?(t=document.getElementById(“calcancel”).firstChild,t&&t.nodeName.toUpperCase()=“A”?t.focus():document.getElementById(“cal”+\u dateChooser.lastDate”).firstChild.focus(),WP.Events.preventDefault(n)):void 0;n.keyCode==13&&(\u dateChooser.wasEnter=!0)}函数keyOnNextMonth(n){=t;if(n.keyCode==9)返回n&&(t=document.getElementById(“calprev”).firstChild,!t | | t.nodeName.toUpperCase()!=“A”)?(t=document.getElementById(“calcancel”).firstChild,t&&t.nodeName.toUpperCase()=“A”?t.focus():document.getElementById(“cal”+\u dateChooser.LastDateDate”).firstChild.focus(),WP.Events.preventDefault(n)):void 0;n.keyCode==13&(&&U dateChooser.wasEnter=!0)函数tabOnCancel(n){var t;if(n.keyCode==9)返回n.shiftKey?void 0:(t=document.getElementById(“calprev”).firstChild,t&&t.nodeName.toUpperCase()==“A”?t.focus():(t=document.getElementById(“calnext”).firstChild,t&&t.nodeName.toUpperCase()==“A”?t.focus():document.getElementById(“cal”+\dateChooser.firstChild.focus())函数dfltClndrCallbackFactory(n){返回函数(t,i,r){var u=document.getElementById(n);u&&(u.holderors=!1,u.openingCalendar=!1,t&&!isNaN(i)&&i>-1&&i<12&&r&(u.value=formattate(new Date(t,i,r)),_-dateChooser.today=parseDate(u.value,!0),WP.Events.firevent(u,,“change-datafocus()”),textChooser函数(n,t,i,r){var u,s,f,e,o;f=document.getElementById(t);typeof r==“string”和&r.length>0?u=window[r](t):$.isFunction(r)和(u=r);typeof u!=“function”和(u=dfltClndrCallbackFactory(t));o=$afe.jq(f.safeAttr(“数据焦点dte”);f.value!==“e=parseDate(f.value,!0):typeof o!=“undefined”&(未定义的)”和(f=dfltclanddrcallbackfactory.dt=new=date)(日历日期,日期,日期,日期,日期,日期,日期,日期)函数writeCalendar(n,t,i,r,u,f,e,o){var h=!1,c=“holdErrors”,l=“openingCalendar”,s;typeof n==“string”&&(n=$afe.select(“#”+n));s=$$WP.SimpleTemplates.Anchor({href:“#”,class:“calendar DateChooseLanchoor”})$$WPUtil.IsNullOrEmpty(o);\124;tr("id",o);s.safeAppend($$WP.SimpleTemplates.Img({src:i,alt:$$WP.Strings.get("CalImgAlt","UI.Calendar")}));t==="range"&&($$WPUtil.IsNullOrEmpty(r)||(window.cachedStartDate=WP.Utils.dte2date(r)),$$WPUtil.IsNullOrEmpty(u)||(window.cachedEndDate=WP.Utils.dte2date(u)));s.click(function(){return n.prop(l,!0),n.prop(c,h),textBoxDataChooser(s[0],n.prop("id"),t,f),h}).on("mousedown",function(){n.prop(c,!0)}).on("mouseout",function(){n.prop(c,h);n.prop(l,h)});s.safeInsertAfter(n)}function clearCalendarDateRange(){window.cachedStartDate=null;window.cachedEndDate=null}function pageLo(n){for(var t=WP.Events.getThis(n);t.nodeName.toUpperCase()!=="DIV";)t=t.parentNode;$afe.jq(t).removeClass("hover")}function pageHi(){return function(n){for(var t=WP.Events.getThis(n);t.nodeName.toUpperCase()!=="DIV";)t=t.parentNode;$afe.jq(t).addClass("hover");_dateChooser.focusOn&&_dateChooser.focusOn!==t.id&&pageLo({target:document.getElementById(_dateChooser.focusOn),srcElement:document.getElementById(_dateChooser.focusOn)});_dateChooser.focusOn=t.id}}function pageCalendarEffects(){var r,t,i,n;if(r=document.getElementById("pagecalendar"),r!==null&&(_dateChooser=function(){},t=r.getElementsByTagName("div"),t!==null))for(i=0;i “+n+”<\/div>”;i=r.find(“h2”);t.dontseth2atitle | | i.length==1&(t.setTitle(i.text(),t.Title.Buttons,t.\u Title.Image,t.IsClosable),i.remove();t.Components$ViewComponent$html(r.html());t.setinfobuttonadata(u)},dispose:function(n){if(!this.\u isposed){t=this.$container.find($form());t(form));t.WP.WP.delete.WP.WP.validator{[this.id]};this.Components$ViewComponent$dispose(n)},cleanResponse:function(n){var t=dangerou$.parseHtml(n);return t.find(#main”).html(),getInfoButtonData:function(n){var t=0,f=0,i=0,r=[],u,e,o,s;do t=n.indexOf('