Go to the source code of this file.
Functions | |
| if (Date.prototype.__msh_oldSetFullYear==null) | |
Variables | |
| Calendar | _add_evs =function(el){with(Calendar){addEvent(el,"mouseover",dayMouseOver);addEvent(el,"mousedown",dayMouseDown);addEvent(el,"mouseout",dayMouseOut);if(is_ie){addEvent(el,"dblclick",dayMouseDblClick);el.setAttribute("unselectable",true);}}} |
| Calendar | _C =null |
| Calendar | _checkCalendar |
| Calendar prototype | _displayWeekdays |
| Calendar prototype | _dragStart |
| window | _dynarch_popupCalendar =null |
| Calendar prototype | _hideCombos =function(){this.monthsCombo.style.display="none";this.yearsCombo.style.display="none";} |
| Calendar prototype | _init |
| Calendar prototype | _initMultipleDates |
| Calendar | _keyEvent |
| Date | _MD =new Array(31,28,31,30,31,30,31,31,30,31,30,31) |
| Calendar prototype | _toggleMultipleDate =function(date){if(this.multiple){var ds=date.print("%Y%m%d");var cell=this.datesCells[ds];if(cell){var d=this.multiple[ds];if(!d){Calendar.addClass(cell,"selected");this.multiple[ds]=date;}else{Calendar.removeClass(cell,"selected");delete this.multiple[ds];}}}} |
| Calendar | addClass =function(el,className){Calendar.removeClass(el,className);el.className+=" "+className;} |
| Calendar | addEvent =function(el,evname,func){if(el.attachEvent){el.attachEvent("on"+evname,func);}else if(el.addEventListener){el.addEventListener(evname,func,true);}else{el["on"+evname]=func;}} |
| Calendar | calDragEnd |
| Calendar | calDragIt |
| Calendar | |
| Calendar prototype | callCloseHandler |
| Calendar prototype | callHandler =function(){if(this.onSelected){this.onSelected(this,this.date.print(this.dateFormat));}} |
| Calendar | cellClick |
| Calendar prototype | create |
| Calendar | createElement |
| Date | DAY =24*Date.HOUR |
| Calendar | dayMouseDblClick =function(ev){Calendar.cellClick(Calendar.getElement(ev),ev||window.event);if(Calendar.is_ie){document.selection.empty();}} |
| Calendar | dayMouseDown |
| Calendar | dayMouseOut |
| Calendar | dayMouseOver |
| Calendar prototype | destroy =function(){var el=this.element.parentNode;el.removeChild(this.element);Calendar._C=null;window._dynarch_popupCalendar=null;} |
| Date prototype | equalsTo =function(date){return((this.getFullYear()==date.getFullYear())&&(this.getMonth()==date.getMonth())&&(this.getDate()==date.getDate())&&(this.getHours()==date.getHours())&&(this.getMinutes()==date.getMinutes()));} |
| Calendar | findMonth |
| Calendar | findYear |
| Calendar | getAbsolutePos |
| Date prototype | getDayOfYear =function(){var now=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);var then=new Date(this.getFullYear(),0,0,0,0,0);var time=now-then;return Math.floor(time/Date.DAY);} |
| Calendar | getElement |
| Date prototype | getMonthDays |
| Calendar | getTargetElement |
| Date prototype | getWeekNumber =function(){var d=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);var DoW=d.getDay();d.setDate(d.getDate()-(DoW+6)%7+3);var ms=d.valueOf();d.setMonth(0);d.setDate(4);return Math.round((ms-d.valueOf())/(7*864e5))+1;} |
| Calendar prototype | hide |
| Calendar prototype | hideShowCovered |
| Date | HOUR =60*Date.MINUTE |
| Calendar | is_ie =(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)) |
| Calendar | is_ie5 =(Calendar.is_ie&&/msie 5\.0/i.test(navigator.userAgent)) |
| Calendar | is_khtml =/Konqueror|Safari|KHTML/i.test(navigator.userAgent) |
| Calendar | is_opera =/opera/i.test(navigator.userAgent) |
| Calendar | isRelated |
| Date | MINUTE =60*Date.SECOND |
| Calendar prototype | parseDate |
| Date prototype | |
| Calendar prototype | refresh =function(){this._init(this.firstDayOfWeek,this.date);} |
| Calendar | removeClass |
| Calendar | removeEvent =function(el,evname,func){if(el.detachEvent){el.detachEvent("on"+evname,func);}else if(el.removeEventListener){el.removeEventListener(evname,func,true);}else{el["on"+evname]=null;}} |
| Calendar prototype | reparent =function(new_parent){var el=this.element;el.parentNode.removeChild(el);new_parent.appendChild(el);} |
| Date | SECOND =1000 |
| Calendar prototype | setDate =function(date){if(!date.equalsTo(this.date)){this._init(this.firstDayOfWeek,date);}} |
| Calendar prototype | setDateFormat =function(str){this.dateFormat=str;} |
| Date prototype | setDateOnly =function(date){var tmp=new Date(date);this.setDate(1);this.setFullYear(tmp.getFullYear());this.setMonth(tmp.getMonth());this.setDate(tmp.getDate());} |
| Calendar prototype | setDateStatusHandler =Calendar.prototype.setDisabledHandler=function(unaryFunction){this.getDateStatus=unaryFunction;} |
| Calendar prototype | setDateToolTipHandler =function(unaryFunction){this.getDateToolTip=unaryFunction;} |
| Calendar prototype | setFirstDayOfWeek =function(firstDayOfWeek){this._init(firstDayOfWeek,this.date);this._displayWeekdays();} |
| Date prototype | setFullYear |
| Calendar prototype | setRange =function(a,z){this.minYear=a;this.maxYear=z;} |
| Calendar prototype | setTtDateFormat =function(str){this.ttDateFormat=str;} |
| Calendar prototype | show |
| Calendar prototype | showAt =function(x,y){var s=this.element.style;s.left=x+"px";s.top=y+"px";this.show();} |
| Calendar prototype | showAtElement |
| Calendar | showMonthsCombo |
| Calendar | showYearsCombo |
| Calendar | stopEvent |
| Calendar | tableMouseDown =function(ev){if(Calendar.getTargetElement(ev)==Calendar.getElement(ev)){return Calendar.stopEvent(ev);}} |
| Calendar | tableMouseOver |
| Calendar | tableMouseUp |
| Date | WEEK =7*Date.DAY |
| if | ( | Date.prototype. | __msh_oldSetFullYear = =null | ) |
Definition at line 185 of file calendar.js.
| Calendar _add_evs =function(el){with(Calendar){addEvent(el,"mouseover",dayMouseOver);addEvent(el,"mousedown",dayMouseDown);addEvent(el,"mouseout",dayMouseOut);if(is_ie){addEvent(el,"dblclick",dayMouseDblClick);el.setAttribute("unselectable",true);}}} |
Definition at line 19 of file calendar.js.
| Calendar _C =null |
Definition at line 6 of file calendar.js.
| Calendar _checkCalendar |
Definition at line 145 of file calendar.js.
Definition at line 166 of file calendar.js.
Definition at line 168 of file calendar.js.
| window _dynarch_popupCalendar =null |
Definition at line 188 of file calendar.js.
| Calendar prototype _hideCombos =function(){this.monthsCombo.style.display="none";this.yearsCombo.style.display="none";} |
Definition at line 168 of file calendar.js.
Definition at line 127 of file calendar.js.
Definition at line 142 of file calendar.js.
| Calendar _keyEvent |
Definition at line 110 of file calendar.js.
| Date _MD =new Array(31,28,31,30,31,30,31,31,30,31,30,31) |
Definition at line 170 of file calendar.js.
| Calendar prototype _toggleMultipleDate =function(date){if(this.multiple){var ds=date.print("%Y%m%d");var cell=this.datesCells[ds];if(cell){var d=this.multiple[ds];if(!d){Calendar.addClass(cell,"selected");this.multiple[ds]=date;}else{Calendar.removeClass(cell,"selected");delete this.multiple[ds];}}}} |
Definition at line 144 of file calendar.js.
| Calendar addClass =function(el,className){Calendar.removeClass(el,className);el.className+=" "+className;} |
Definition at line 14 of file calendar.js.
| Calendar addEvent =function(el,evname,func){if(el.attachEvent){el.attachEvent("on"+evname,func);}else if(el.addEventListener){el.addEventListener(evname,func,true);}else{el["on"+evname]=func;}} |
Definition at line 17 of file calendar.js.
| Calendar calDragEnd |
Definition at line 56 of file calendar.js.
| Calendar calDragIt |
Definition at line 54 of file calendar.js.
Definition at line 2 of file calendar.js.
Definition at line 144 of file calendar.js.
| Calendar prototype callHandler =function(){if(this.onSelected){this.onSelected(this,this.date.print(this.dateFormat));}} |
Definition at line 144 of file calendar.js.
| Calendar cellClick |
Definition at line 69 of file calendar.js.
Definition at line 90 of file calendar.js.
| Calendar createElement |
Definition at line 17 of file calendar.js.
| Date DAY =24*Date.HOUR |
Definition at line 170 of file calendar.js.
| Calendar dayMouseDblClick =function(ev){Calendar.cellClick(Calendar.getElement(ev),ev||window.event);if(Calendar.is_ie){document.selection.empty();}} |
Definition at line 62 of file calendar.js.
| Calendar dayMouseDown |
Definition at line 58 of file calendar.js.
| Calendar dayMouseOut |
Definition at line 66 of file calendar.js.
| Calendar dayMouseOver |
Definition at line 62 of file calendar.js.
| Calendar prototype destroy =function(){var el=this.element.parentNode;el.removeChild(this.element);Calendar._C=null;window._dynarch_popupCalendar=null;} |
Definition at line 145 of file calendar.js.
| Date prototype equalsTo =function(date){return((this.getFullYear()==date.getFullYear())&&(this.getMonth()==date.getMonth())&&(this.getDate()==date.getDate())&&(this.getHours()==date.getHours())&&(this.getMinutes()==date.getMinutes()));} |
Definition at line 182 of file calendar.js.
| Calendar findMonth |
Definition at line 19 of file calendar.js.
| Calendar findYear |
Definition at line 20 of file calendar.js.
| Calendar getAbsolutePos |
Definition at line 6 of file calendar.js.
| Date prototype getDayOfYear =function(){var now=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);var then=new Date(this.getFullYear(),0,0,0,0,0);var time=now-then;return Math.floor(time/Date.DAY);} |
Definition at line 182 of file calendar.js.
| Calendar getElement |
Definition at line 14 of file calendar.js.
| Date prototype getMonthDays |
Definition at line 181 of file calendar.js.
| Calendar getTargetElement |
Definition at line 15 of file calendar.js.
| Date prototype getWeekNumber =function(){var d=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);var DoW=d.getDay();d.setDate(d.getDate()-(DoW+6)%7+3);var ms=d.valueOf();d.setMonth(0);d.setDate(4);return Math.round((ms-d.valueOf())/(7*864e5))+1;} |
Definition at line 182 of file calendar.js.
Definition at line 148 of file calendar.js.
Referenced by compute_ledger(), detail_category_show(), ledger_fin_add_row(), profile_show(), search_letter(), show_fin_chdate(), todo_list_remove(), and toggleHideShow().
Definition at line 159 of file calendar.js.
| Date HOUR =60*Date.MINUTE |
Definition at line 170 of file calendar.js.
Definition at line 6 of file calendar.js.
| Calendar is_ie5 =(Calendar.is_ie&&/msie 5\.0/i.test(navigator.userAgent)) |
Definition at line 6 of file calendar.js.
Definition at line 6 of file calendar.js.
Definition at line 6 of file calendar.js.
| Calendar isRelated |
Definition at line 9 of file calendar.js.
| Date MINUTE =60*Date.SECOND |
Definition at line 170 of file calendar.js.
| Date parseDate |
Definition at line 158 of file calendar.js.
| Date prototype print |
Definition at line 182 of file calendar.js.
| Calendar prototype refresh =function(){this._init(this.firstDayOfWeek,this.date);} |
Definition at line 144 of file calendar.js.
| Calendar removeClass |
Definition at line 12 of file calendar.js.
| Calendar removeEvent =function(el,evname,func){if(el.detachEvent){el.detachEvent("on"+evname,func);}else if(el.removeEventListener){el.removeEventListener(evname,func,true);}else{el["on"+evname]=null;}} |
Definition at line 17 of file calendar.js.
| Calendar prototype reparent =function(new_parent){var el=this.element;el.parentNode.removeChild(el);new_parent.appendChild(el);} |
Definition at line 145 of file calendar.js.
| Date SECOND =1000 |
Definition at line 170 of file calendar.js.
| Calendar prototype setDate =function(date){if(!date.equalsTo(this.date)){this._init(this.firstDayOfWeek,date);}} |
Definition at line 144 of file calendar.js.
Definition at line 158 of file calendar.js.
| Date prototype setDateOnly =function(date){var tmp=new Date(date);this.setDate(1);this.setFullYear(tmp.getFullYear());this.setMonth(tmp.getMonth());this.setDate(tmp.getDate());} |
Definition at line 182 of file calendar.js.
| Calendar prototype setDateStatusHandler =Calendar.prototype.setDisabledHandler=function(unaryFunction){this.getDateStatus=unaryFunction;} |
Definition at line 144 of file calendar.js.
| Calendar prototype setDateToolTipHandler =function(unaryFunction){this.getDateToolTip=unaryFunction;} |
Definition at line 144 of file calendar.js.
| Calendar prototype setFirstDayOfWeek =function(firstDayOfWeek){this._init(firstDayOfWeek,this.date);this._displayWeekdays();} |
Definition at line 144 of file calendar.js.
| Date prototype setFullYear |
Definition at line 187 of file calendar.js.
Definition at line 144 of file calendar.js.
Definition at line 158 of file calendar.js.
Definition at line 146 of file calendar.js.
Referenced by ajax_card(), ajax_get_success(), detail_category_show(), get_profile_detail(), PcmnUpdate(), profile_show(), search_letter(), show_box(), show_fin_chdate(), and toggleHideShow().
| Calendar prototype showAt =function(x,y){var s=this.element.style;s.left=x+"px";s.top=y+"px";this.show();} |
Definition at line 149 of file calendar.js.
Definition at line 149 of file calendar.js.
| Calendar showMonthsCombo |
Definition at line 21 of file calendar.js.
| Calendar showYearsCombo |
Definition at line 27 of file calendar.js.
| Calendar stopEvent |
Definition at line 16 of file calendar.js.
| Calendar tableMouseDown =function(ev){if(Calendar.getTargetElement(ev)==Calendar.getElement(ev)){return Calendar.stopEvent(ev);}} |
Definition at line 54 of file calendar.js.
| Calendar tableMouseOver |
Definition at line 40 of file calendar.js.
| Calendar tableMouseUp |
Definition at line 35 of file calendar.js.
| Date WEEK =7*Date.DAY |
Definition at line 170 of file calendar.js.